void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiElement call = element.getParent(); if (call == null) return; call = call.getParent(); if (!(call instanceof GrMethodCall methodCall)) return; GrExpression invokedExpression = methodCall.getInvokedExpression(); if (!(invokedExpression instanceof GrReferenceExpression)) return; if(!myTransformation.couldApply(methodCall, myOptions)) return; myTransformation.apply(methodCall, myOptions); }