void (@NotNull Project project, @NotNull PsiElement methodNameElement, @NotNull ModPsiUpdater updater) { final PsiReferenceExpression methodExpression = (PsiReferenceExpression)methodNameElement.getParent(); assert methodExpression != null; final PsiExpression qualifier = methodExpression.getQualifierExpression(); CommentTracker commentTracker = new CommentTracker(); if (qualifier == null) { PsiReplacementUtil.replaceExpression(methodExpression, getMethodName(), commentTracker); } else { final String qualifierText = commentTracker.text(qualifier); PsiReplacementUtil.replaceExpression(methodExpression, qualifierText + '.' + getMethodName(), commentTracker); } }