void () { RefClass[] instClasses = myInstantiatedClasses.toArray(new RefClass[0]); for (RefClass refClass : instClasses) { if (isClassInstantiated(refClass)) { Set<RefMethod> methods = myClassIDtoMethods.get(refClass); if (methods != null) { RefMethod[] arMethods = methods.toArray(new RefMethod[0]); for (RefMethod arMethod : arMethods) { arMethod.accept(this); } } } } }