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