void (@NonNls @NotNull String reason, @NotNull Runnable update) { ApplicationManager.getApplication().invokeLater(() -> { ApplicationManager.getApplication().runWriteAction(() -> { FileTypeManagerImpl fileTypeManager = (FileTypeManagerImpl)FileTypeManager.getInstance(); fileTypeManager.makeFileTypesChange(reason, update); }); }, ModalityState.nonModal()); }