private static int getLanguageLevel(@NotNull JpsModule module) {
    final LanguageLevel level = JpsJavaExtensionService.getInstance().getLanguageLevel(module);
    return level != null ? level.feature() : 0;
  }
private static int getLanguageLevel(@NotNull JpsModule module)