boolean (@Nullable UCallableReferenceExpression reference) { if (reference == null) return false; String name = reference.getCallableName(); if (!myNames.contains(name)) return false; PsiMethod method = ObjectUtils.tryCast(reference.resolve(), PsiMethod.class); return methodMatches(method); }