Collection consumersMatching = new LinkedList();
Collection<Class> consumersMatching = new LinkedList<Class>();
    public Class[] getClassesMatchingConsumptionFromActiveNode(            ActiveNode sourceNode) {        Collection consumersMatching = new LinkedList();        Class[] consumersAllowed = getConsumersAllowed();        for (int i = 0; i < consumersAllowed.length; i++) {            if (consumersAllowed[i].isInstance(sourceNode                    .getSimBioModuleImpl())) {                consumersMatching.add(consumersAllowed[i]);            }        }        Class[] classArray = (Class[])(consumersMatching.toArray(new Class[0]));        return classArray;    }