void (Project project, MavenServerConnector connector) { Disposer.register(MavenDisposable.getInstance(project), () -> { ApplicationManager.getApplication().executeOnPooledThread(() -> shutdownConnector(connector, false)); }); }