boolean (PsiLiteralExpression literal) { final PsiType type = literal.getType(); if (!PsiTypes.intType().equals(type) && !PsiTypes.longType().equals(type)) { return false; } final String text = literal.getText(); return text.charAt(0) != '0'; }