void () { for (String name : FILE_TYPES_WITH_PREDEFINED_EXTENSIONS) { StandardFileType stdFileType = myStandardFileTypes.get(name); if (stdFileType != null) { FileType fileType = stdFileType.fileType; for (FileNameMatcher matcher : myPatternsTable.getAssociations(FileTypeWithDescriptor.allFor(fileType))) { FileType defaultFileType = myInitialAssociations.findAssociatedFileType(matcher); if (defaultFileType != null && defaultFileType != fileType) { removeAssociation(coreDescriptorFor(fileType), matcher, false); associate(coreDescriptorFor(defaultFileType), matcher, false); } } for (FileNameMatcher matcher : myInitialAssociations.getAssociations(fileType)) { associate(coreDescriptorFor(fileType), matcher, false); } } } }