LocalQuickFix (PsiAssignmentExpression assignment) { if (assignment == null || assignment.getRExpression() == null || !(assignment.getParent() instanceof PsiExpressionStatement)) { return null; } return new RemoveAssignmentFix(); }