void (@NotNull ActionContext context, @NotNull PsiMethodCallExpression call, @NotNull ModPsiUpdater updater) { PsiExpression methodExpression = call.getMethodExpression(); PsiElementFactory factory = JavaPsiFacade.getElementFactory(context.project()); String replacement = methodExpression.getText() + "." + myMethodName; methodExpression.replace(factory.createExpressionFromText(replacement, methodExpression)); }