void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiElement parent = element.getParent(); if (!(parent instanceof PsiReferenceExpression referenceExpression)) { return; } PsiReplacementUtil.replaceExpression(referenceExpression, myClassName + '.' + myReplacement); }