LocalQuickFix (PsiExpression expression) { final PsiElement parent = PsiUtil.skipParenthesizedExprUp(expression.getParent()); if (parent instanceof PsiVariable variable && variable.hasModifierProperty(PsiModifier.FINAL)) { return null; } return new RemoveSillyAssignmentFix(); }