@@ -0,0 +1,639 @@
+/*%0A * Copyright (c) 2000-2005 by JetBrains s.r.o. All Rights Reserved.%0A * Use is subject to license terms.%0A */%0Apackage com.intellij.util.containers;%0A%0Aimport gnu.trove.THashSet;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collection;%0Aimport java.util.Set;%0A%0A/**%0A * @author peter%0A */%0Apublic class CollectionFactory %7B%0A  private CollectionFactory() %7B%0A  %7D%0A%0A  public static %3CT%3E Set%3CT%3E newTroveSet(T... elements) %7B%0A    return newTroveSet(Arrays.asList(elements));%0A  %7D%0A%0A  public static %3CT%3E Set%3CT%3E newTroveSet(Collection%3CT%3E elements) %7B%0A    return new THashSet%3CT%3E(elements);%0A  %7D%0A%0A  public static %3CT%3E T%5B%5D ar(T... elements) %7B%0A    return elements;%0A  %7D%0A%7D%0A

support other platform components