void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiMethodCallExpression call = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); if (call == null) return; String params = getGenericParameters(call); PsiExpression[] args = call.getArgumentList().getExpressions(); CommentTracker ct = new CommentTracker(); String replacement = JAVA_UTIL_MAP_ENTRY + "." + params + myReplacementMethod + "(" + (args.length == 2 ? ct.text(args[1]) : "") + ")"; PsiElement result = ct.replaceAndRestoreComments(call, replacement); RemoveRedundantTypeArgumentsUtil.removeRedundantTypeArguments(result); }