void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiReferenceExpression referenceExpression)) { return; } fixContainingMethodReturnType(referenceExpression, updater); PsiReplacementUtil.replaceExpressionAndShorten(referenceExpression, myReplacementText); }