void (@NotNull PyLiteralPattern literalPattern) { PyBinaryExpression expression = as(literalPattern.getExpression(), PyBinaryExpression.class); if (expression != null) { PyNumericLiteralExpression rightOperand = as(expression.getRightExpression(), PyNumericLiteralExpression.class); if (rightOperand != null && rightOperand.getFirstChild().getNode().getElementType() != PyTokenTypes.IMAGINARY_LITERAL) { markError(expression, PyPsiBundle.message("ANN.patterns.invalid.complex.number.literal")); } } }