code: private static void loadFile(@NotNull InputStream in) {
  
          try (BufferedReader br = new BufferedReader(new InputStreamReader(in))) {
              String l;
  
              while ((l = br.readLine()) != null) {
                  if (l.length() > 0 && l.charAt(0) != '#') {
                      String[] tokens = l.split("\\s+");
                      for (int i = 1; i < tokens.length; i++) {
                          mimes.put(tokens[i], tokens[0]);
                      }
                  }
              }
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Loads a file from a input stream containing all known mime types. The InputStream is a resource mapped from the
  project resource directory.
  
  @param in InputStream