void (@NotNull Map<String, String> hashBangs, boolean isAddToInit) { for (Map.Entry<String, String> entry : hashBangs.entrySet()) { String hashBang = entry.getKey(); String typeName = entry.getValue(); FileTypeWithDescriptor ftd = getFileTypeWithDescriptorByName(typeName); if (ftd == null) { myUnresolvedHashBangs.put(hashBang, typeName); } else { myPatternsTable.addHashBangPattern(hashBang, ftd); if (isAddToInit) { myInitialAssociations.addHashBangPattern(hashBang, ftd.fileType); } } } }