LocalQuickFix (Object... infos) { final PsiExpression expression = (PsiExpression)infos[0]; if (PsiTreeUtil.getParentOfType(expression, PsiCodeBlock.class, true, PsiMember.class) == null) { return null; } return new IncrementDecrementUsedAsExpressionFix(expression.getText()); }