void (@NotNull ActionContext context, @NotNull PsiLiteralExpression literal, @NotNull ModPsiUpdater updater) { final PsiField myConstant = myConst.getElement(); if (myConstant == null) return; final PsiExpression initializer = myConstant.getInitializer(); if (!(initializer instanceof PsiLiteralExpression)) { return; } final PsiReferenceExpression reference = createReferenceTo(myConstant); if (reference != null) { final PsiReferenceExpression newReference = (PsiReferenceExpression)literal.replace(reference); if (UnnecessarilyQualifiedStaticUsageInspection.isUnnecessarilyQualifiedAccess(newReference, false, false, true)) { //remove qualifier newReference.getChildren()[0].delete(); } } }