public static AnalyzeExhaust analyzeOneFileWithJavaIntegrationAndCheckForErrors(
      JetFile file, List<AnalyzerScriptParameter> scriptParameters) {
    AnalyzingUtils.checkForSyntacticErrors(file);

    AnalyzeExhaust analyzeExhaust = analyzeOneFileWithJavaIntegration(file, scriptParameters);

    AnalyzingUtils.throwExceptionOnErrors(analyzeExhaust.getBindingContext());

    return analyzeExhaust;
  }
  public static AnalyzeExhaust analyzeFilesWithJavaIntegrationAndCheckForErrors(
      Project project,
      Collection<JetFile> files,
      List<AnalyzerScriptParameter> scriptParameters,
      Predicate<PsiFile> filesToAnalyzeCompletely) {
    for (JetFile file : files) {
      AnalyzingUtils.checkForSyntacticErrors(file);
    }

    AnalyzeExhaust analyzeExhaust =
        analyzeFilesWithJavaIntegration(
            project, files, scriptParameters, filesToAnalyzeCompletely, false);

    AnalyzingUtils.throwExceptionOnErrors(analyzeExhaust.getBindingContext());

    return analyzeExhaust;
  }