LocalQuickFix (PsiField field) { final PsiExpression initializer = field.getInitializer(); if (initializer == null) { return null; } if (!FinalUtils.canBeFinal(field)) { return null; } return new MakeFieldStaticFinalFix(field.getName()); }