boolean (@Nullable PyExpression expression, @NotNull PyElementType tokenType) { if (expression instanceof PyBinaryExpression) { final PyElementType operator = ((PyBinaryExpression)expression).getOperator(); return operator == tokenType; } return false; }