void (@NotNull Module module) { Promise<ProjectTaskManager.Result> promise = ProjectTaskManager.getInstance(module.getProject()).rebuild(module); edt(() -> PlatformTestUtil.waitForPromise(promise)); }