boolean (PsiExpression @NotNull [] expressions) { for (PsiExpression expression : expressions) { if (!(expression instanceof PsiLiteralExpression) || !expression.getText().equals("0")) return false; } return true; }