boolean (@NotNull final T t, final ProcessingContext context) { PsiMethod method = PsiTreeUtil.getParentOfType(t, PsiMethod.class, false, PsiMember.class); return method != null && pattern.accepts(method, context); }