public static FileChooserDescriptor createSingleFileDescriptor(@NotNull String extension) {
    return new FileChooserDescriptor(true, false, false, false, false, false)
      .withFileFilter(file -> file.isCaseSensitive() ? extension.equals(file.getExtension()) : extension.equalsIgnoreCase(file.getExtension()), "file-ext");
  }
public static FileChooserDescriptor createSingleFileDescriptor(@NotNull String extension)