private static @NotNull PyBinaryExpression getTopmostBinaryExpression(@NotNull PyBinaryExpression element) {
    PyBinaryExpression result = element;
    while (result.getParent() instanceof PyBinaryExpression binaryExpression) {
      result = binaryExpression;
    }
    return result;
  }
private static @NotNull PyBinaryExpression getTopmostBinaryExpression(@NotNull PyBinaryExpression element)