void (@NotNull StandardFileType stdFileType, @NotNull FileTypeBean extension) { ApplicationManager.getApplication().runWriteAction(() -> { stdFileType.matchers.removeAll(extension.getMatchers()); for (FileNameMatcher matcher : extension.getMatchers()) { myPatternsTable.removeAssociation(matcher, stdFileType.getDescriptor()); } fireFileTypesChanged(stdFileType.fileType, null); }); }