void (final ConvertContext context, Processor<? super PsiMethod> processor, Function<? super PsiClass, PsiMethod[]> methodGetter) { for (PsiClass psiClass : getPsiClasses(getParent(context), context)) { if (psiClass != null) { for (PsiMethod psiMethod : methodGetter.fun(psiClass)) { if (!processor.process(psiMethod)) { return; } } } } }