public static FileChooserDescriptor createSingleFileDescriptor(@NotNull FileType fileType) {
    return new FileChooserDescriptor(true, false, false, false, false, false)
      .withFileFilter(file -> FileTypeRegistry.getInstance().isFileOfType(file, fileType), "file-type");
  }
public static FileChooserDescriptor createSingleFileDescriptor(@NotNull FileType fileType)