void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (myEnumName == null) { return; } if (element instanceof PsiNewExpression || element instanceof PsiArrayInitializerExpression) { PsiReplacementUtil.replaceExpression((PsiExpression)element, myEnumName + ".values()"); } }