boolean (@NotNull PsiElement element) { if (!(element instanceof GrMethodCall methodCall)) return false; PsiMethod method = methodCall.resolveMethod(); if (method == null) return false; return getReplacementStatement(method, methodCall) != null; }