MavenServer () { while (!myServerPromise.isDone()) { try { myServerPromise.get(100, TimeUnit.MILLISECONDS); } catch (Exception ignore) { } if (throwExceptionIfProjectDisposed && myProject.isDisposed()) { throw new CannotStartServerException("Project already disposed"); } ProgressManager.checkCanceled(); } return myServerPromise.get(); }