LongRunningTaskStatus (@NotNull String longRunningTaskId, MavenToken token) { MavenServerUtil.checkToken(token); LongRunningTaskImpl task = myLongRunningTasks.get(longRunningTaskId); if (null == task) return LongRunningTaskStatus.EMPTY; return new LongRunningTaskStatus( task.getTotalRequests(), task.getFinishedRequests(), task.getIndicator().pullConsoleEvents(), task.getIndicator().pullDownloadEvents() ); }