boolean (@Nullable PsiMethod method) { if (method == null) return false; if (!myNames.contains(method.getName())) return false; PsiClass aClass = method.getContainingClass(); if (aClass == null) return false; return myCallType.matches(aClass, myClassName, method.hasModifierProperty(PsiModifier.STATIC)) && parametersMatch(method.getParameterList()); }