void (@NotNull StandardFileType pair) { FileType fileType = pair.fileType; if (fileType == PlainTextFileType.INSTANCE) return; for (FileNameMatcher matcher : pair.matchers) { registerReDetectedMapping(fileType.getName(), matcher); if (matcher instanceof ExtensionFileNameMatcher extMatcher) { // also check exact file name matcher registerReDetectedMapping(fileType.getName(), new ExactFileNameMatcher("." + extMatcher.getExtension())); } } }