boolean (PsiExpression expression) { Object constant = ExpressionUtils.computeConstantExpression(expression); if(constant == null) { return false; } return (constant instanceof Integer || constant instanceof Long) && ((Number)constant).longValue() == -1; }