void (@NotNull Project project) { if (myProjectDataMap.remove(getProjectPath(project)) != null) { if (myProjectDataMap.isEmpty()) { InternedPath.clearCache(); } } MessageBusConnection connection = myConnections.remove(project); if (connection != null) { connection.disconnect(); } }