void () { ArchiveFileType fileType = ArchiveFileType.INSTANCE; FileNameMatcher matcher = myFileTypeManager.getAssociations(fileType).get(0); myFileTypeManager.getRemovedMappingTracker().add(matcher, fileType.getName(), true); WriteAction.run(() -> myFileTypeManager.setPatternsTable( new HashSet<>(myFileTypeManager.getRegisteredFileTypeWithDescriptors()), myFileTypeManager.getExtensionMap().copy())); assertEmpty(myFileTypeManager.getRemovedMappingTracker().getRemovedMappings()); }