static boolean isOnTheSameLine(@Nullable XSourcePosition pos1, @Nullable XSourcePosition pos2) {
    if (pos1 == null || pos2 == null) {
      return false;
    }
    return pos1.getFile().equals(pos2.getFile()) && pos1.getLine() == pos2.getLine();
  }
static boolean isOnTheSameLine(@Nullable XSourcePosition pos1, @Nullable XSourcePosition pos2)