public static @NotNull String makeFileName(@NotNull String name, @Nullable String extension) {
    return extension == null || extension.isEmpty() ? name : name + '.' + extension;
  }
public static @NotNull String makeFileName(@NotNull String name, @Nullable String extension)