void (@NotNull Callback callback) { SystemFileTypeAssociator associator = SystemAssociatorFactory.getAssociator(); if (associator != null) { FileTypeAssociationDialog dialog = new FileTypeAssociationDialog(); if (dialog.showAndGet()) { List<FileType> fileTypes = dialog.getSelectedFileTypes(); doAssociate(callback, associator, fileTypes); OSFileAssociationPreferences.getInstance().updateFileTypes(fileTypes); } } }