void (final @NotNull Processor<? super PsiElement> processor, final boolean inherited, @NotNull TypeEvalContext context) { for (PsiMethod method : myClass.getAllMethods()) { processor.process(method); } for (PsiField field : myClass.getAllFields()) { processor.process(field); } if (!inherited) { return; } for (PyClassLikeType type : getAncestorTypes(context)) { if (type != null) { type.visitMembers(processor, false, context); } } }