private void registerHashBangs(@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) {
        unresolvedHashBangs.put(hashBang, typeName);
      }
      else {
        patternsTable.addHashBangPattern(hashBang, ftd);
        if (isAddToInit) {
          initialAssociations.addHashBangPattern(hashBang, ftd.fileType());
        }
      }
    }
  }
private void registerHashBangs(@NotNull Map<String, String> hashBangs, boolean isAddToInit)