ExceptionHelper.checkNotNullArgument(project, "project");
ExceptionHelper.checkNotNullArgument(listener, "listener");
final File projectDir = project.getProjectDirectoryAsFile();
String caption = NbStrings.getLoadingProjectText(project.getDisplayName());
GradleDaemonManager.submitGradleTask(PROJECT_LOADER, caption, new DaemonTask() {
@Override
public void run(CancellationToken cancelToken, ProgressHandle progress) {
NbGradleModel model = tryGetFromCache(projectDir);
if (model == null) {
model = baseModel;