void (@NotNull StandardFileType standardFileType) { for (FileNameMatcher matcher : new ArrayList<>(myUnresolvedMappings.keySet())) { String name = myUnresolvedMappings.get(matcher); if (standardFileType.fileType.getName().equals(name)) { myPatternsTable.addAssociation(matcher, standardFileType.getDescriptor()); myUnresolvedMappings.remove(matcher); } } for (FileNameMatcher matcher : myRemovedMappingTracker.getMappingsForFileType(standardFileType.fileType.getName())) { removeAssociation(FileTypeWithDescriptor.allFor(standardFileType.fileType), matcher, false); } }