boolean (@NotNull final PsiClass psiClass, final ProcessingContext context) { for (PsiMethod method : (checkDeep ? psiClass.getAllMethods() : psiClass.getMethods())) { if (memberPattern.accepts(method, context)) { return true; } } return false; }