private static boolean areLanguageLevelsCompatible(LanguageLevel oldLevel, LanguageLevel newLevel) {
    return oldLevel != null && newLevel != null && COMPATIBLE_LEVELS.get(oldLevel) == newLevel;
  }
private static boolean areLanguageLevelsCompatible(LanguageLevel oldLevel, LanguageLevel newLevel)