void (@NotNull PsiArrayInitializerExpression expression) { super.visitArrayInitializerExpression(expression); final PsiExpression[] initializers = expression.getInitializers(); boolean hasDecimalLiteral = false; boolean hasOctalLiteral = false; for (PsiExpression initializer : initializers) { initializer = PsiUtil.skipParenthesizedExprDown(initializer); if (initializer instanceof PsiLiteralExpression literal) { if (isDecimalLiteral(literal)) { hasDecimalLiteral = true; } if (ExpressionUtils.isOctalLiteral(literal)) { hasOctalLiteral = true; } } } if (hasOctalLiteral && hasDecimalLiteral) { registerError(expression); } }