boolean (PsiLiteralExpression literal) { final PsiType type = literal.getType(); if (!PsiTypes.intType().equals(type) && !PsiTypes.longType().equals(type)) { return false; } if (literal.getValue() == null) { // red code return false; } return isOctalLiteralText(literal.getText()); }