boolean (Processor<? super PyFunction> processor, boolean inherited, @Nullable final TypeEvalContext context) { if (!ContainerUtil.process(getMethods(), processor)) return false; if (inherited) { for (PyClass ancestor : getAncestorClasses(context)) { if (!ancestor.visitMethods(processor, false, context)) { return false; } } } return true; }