}
private static void reportModelLoadError(NbGradleProject project, GradleModelLoadError error) {
Throwable unexpectedError = error.getUnexpectedError();
if (unexpectedError != null) {
ModelLoadIssue unexpectedIssue = ModelLoadIssues
.projectModelLoadError(project, null, null, unexpectedError);
ModelLoadIssueReporter.reportAllIssues(Collections.singleton(unexpectedIssue));
}
Throwable buildScriptEvaluationError = error.getBuildScriptEvaluationError();