void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiReferenceExpression expression = (PsiReferenceExpression)element; if (expression.getQualifierExpression() != null) { return; } final PsiExpression thisQualifier = ExpressionUtils.getEffectiveQualifier(expression); if (!(thisQualifier instanceof PsiThisExpression)) return; CommentTracker commentTracker = new CommentTracker(); @NonNls final String newExpression = commentTracker.text(thisQualifier) + "." + commentTracker.text(expression); PsiReplacementUtil.replaceExpressionAndShorten(expression, newExpression, commentTracker); }