void (Collection<? extends RefElement> references, Set<? super RefClass> set) { final RefJavaUtil refUtil = RefJavaUtil.getInstance(); for (RefElement reference : references) { final RefClass refClass = reference instanceof RefClass ? (RefClass)reference : refUtil.getOwnerClass(reference); if (refClass != null && !refClass.isAnonymous() && !refClass.isLocalClass()) { set.add(refClass); } } }