void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { final PsiElement element = startElement.getParent().getParent(); if (!(element instanceof PsiMethodCallExpression methodCallExpression)) { return; } CommentTracker commentTracker = new CommentTracker(); String newExpression = "java.util.Arrays." + myKind.getNewMethodName() + commentTracker.text(methodCallExpression.getArgumentList()); PsiReplacementUtil.replaceExpressionAndShorten(methodCallExpression, newExpression, commentTracker); }