void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiElement parent = element.getParent(); final PsiElement grandParent = parent.getParent(); if (!(grandParent instanceof PsiMethodCallExpression methodCallExpression)) { return; } final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); final PsiExpression qualifier = methodExpression.getQualifierExpression(); if (qualifier == null) { return; } @NonNls final StringBuilder newExpressionText = new StringBuilder(); if (deepHashCode) { newExpressionText.append("java.util.Arrays.deepHashCode("); } else { newExpressionText.append("java.util.Arrays.hashCode("); } CommentTracker commentTracker = new CommentTracker(); newExpressionText.append(commentTracker.text(qualifier)); newExpressionText.append(')'); PsiReplacementUtil.replaceExpressionAndShorten(methodCallExpression, newExpressionText.toString(), commentTracker); }