void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { final PsiReferenceExpression expression = (PsiReferenceExpression)startElement; final PsiMember member = (PsiMember)expression.resolve(); assert member != null; final PsiClass containingClass = member.getContainingClass(); assert containingClass != null; final String className = containingClass.getName(); CommentTracker commentTracker = new CommentTracker(); PsiReplacementUtil.replaceExpression(expression, className + '.' + commentTracker.text(expression), commentTracker); }