boolean (@NotNull PsiMethod psiMethod, ProcessingContext context) { PsiClass containingClass = psiMethod.getContainingClass(); if (containingClass != null) { if (InheritanceUtil.isInheritor(containingClass, className)) { return true; } } return false; }