private static FileType getFileTypeByFileName(String name) {
    if (name.endsWith(".py")) {
      return PythonFileType.INSTANCE;
    } else {
      throw new IllegalArgumentException("unexpected file type");
    }
  }
private static FileType getFileTypeByFileName(String name)