void (ProjectTaskManager.@NotNull Result result) { if (result.anyTaskMatches((task, state) -> task instanceof ModuleBuildTask)) { if (result.getContext().getGeneratedFilesRoots().isEmpty() && result.getContext().getDirtyOutputPaths().isEmpty()) return; myHasErrors = result.hasErrors() || result.isAborted(); if (!result.hasErrors() && !result.isAborted()) { restartAllAutoTests(() -> isUpToDate()); } } }