private void checkLanguageLevel(
     @NotNull GradleProject gradleProject,
     @NotNull Project intellijProject,
     @NotNull Set<GradleProjectStructureChange> currentChanges) {
   LanguageLevel gradleLevel = gradleProject.getLanguageLevel();
   LanguageLevel intellijLevel = myPlatformFacade.getLanguageLevel(intellijProject);
   if (gradleLevel != intellijLevel) {
     currentChanges.add(new GradleLanguageLevelChange(gradleLevel, intellijLevel));
   }
 }
  @Override
  public void calculate(
      @NotNull GradleProject gradleEntity,
      @NotNull Project intellijEntity,
      @NotNull GradleChangesCalculationContext context) {
    calculateProjectChanges(gradleEntity, intellijEntity, context.getCurrentChanges());

    final Set<? extends GradleModule> gradleSubEntities = gradleEntity.getModules();
    final Collection<Module> intellijSubEntities = myPlatformFacade.getModules(intellijEntity);
    GradleDiffUtil.calculate(
        myModuleChangesCalculator, gradleSubEntities, intellijSubEntities, context);

    LibraryTable libraryTable = myPlatformFacade.getProjectLibraryTable(intellijEntity);
    GradleDiffUtil.calculate(
        myLibraryChangesCalculator,
        gradleEntity.getLibraries(),
        Arrays.asList(libraryTable.getLibraries()),
        context);
  }