private static int getTotalLength(@NotNull List<TabInfo> list, @NotNull TablePassInfo data) {
    int total = 0;
    for (TabInfo info : list) {
      total += data.lengths.get(info);
    }
    return total;
  }
private static int getTotalLength(@NotNull List<TabInfo> list, @NotNull TablePassInfo data)