private static boolean isLegacyPython(@NotNull LanguageLevel languageLevel) {
    return languageLevel.isPython2() || languageLevel.isOlderThan(LanguageLevel.PYTHON37);
  }
private static boolean isLegacyPython(@NotNull LanguageLevel languageLevel)