boolean (Processor<? super PyClass> processor, boolean inherited) { PyClass[] nestedClasses = getNestedClasses(); if (!ContainerUtil.process(nestedClasses, processor)) return false; if (inherited) { for (PyClass ancestor : getAncestorClasses(null)) { if (!((PyClassImpl)ancestor).visitNestedClasses(processor, false)) { return false; } } } return true; }