void (@NotNull FileTypeEvent event) { // Listen changes in 'FileTypeManager.getIgnoredFilesList': // 'ProjectLevelVcsManager.getVcsFor' depends on it via 'ProjectLevelVcsManager.isIgnored', // which might impact which files are visible in ChangeListManager. // Event does not allow to listen for 'getIgnoredFilesList' changes directly, listen for all generic events instead. boolean isGenericEvent = event.getAddedFileType() == null && event.getRemovedFileType() == null; if (isGenericEvent) { ApplicationManager.getApplication().invokeLater(() -> markEverythingDirty(), ModalityState.nonModal(), myProject.getDisposed()); } }