MavenServer () { try { MavenServer server = waitForServer(); if (server == null) { throw new ProcessCanceledException(); } return server; } catch (ProcessCanceledException e) { throw e; } catch (Throwable e) { try { MavenServerManager.getInstance().shutdownConnector(this, false); } catch (Throwable ignored) { } throw e instanceof CannotStartServerException ? (CannotStartServerException)e : new CannotStartServerException(e); } }