private Map<String, Color> generateFromPalette(@NotNull List<Color> defaultPalette) {
    Map<String, Color> path2Palette = new HashMap<>();

    for (int i = 0; i < myPaths.size(); i++) {
      path2Palette.put(myPaths.get(i).getPath(), getColor(i, myPaths.size(), defaultPalette));
    }
    return path2Palette;
  }
private Map<String, Color> generateFromPalette(@NotNull List<Color> defaultPalette)