@Contract(pure = true)
  public static @NotNull String trimExtensions(@NotNull String name) {
    int index = name.indexOf('.');
    return index < 0 ? name : name.substring(0, index);
  }
@Contract(pure = true)
  public static @NotNull String trimExtensions(@NotNull String name)