class MaterialDesignIcons {

  @NotNull
  @VisibleForTesting
  static Map<String, String> getBasenameToPathMap(@NotNull Function<String, List<String>> generator) {
    ImmutableMap.Builder<String, String> builder = new ImmutableMap.Builder<>();
    int dotXmlLength = DOT_XML.length();

    for (String category : getCategories()) {
      String path = PATH + category + '/';

      for (String name : generator.apply(path)) {
        builder.put(name.substring(0, name.length() - dotXmlLength), path + name);
      }
    }

    return builder.build();
  }

  private  MaterialDesignIcons();

}