@Override
    public void beforeConnectionClosed() {
      Application app = ApplicationManager.getApplication();
      VirtualFilePointerManager service = app == null ? null : app.getServiceIfCreated(VirtualFilePointerManager.class);
      if (service != null) {
        ((VirtualFilePointerManagerImpl)service).switchToUrlBasedPointers();
      }
    }
@Override
    public void beforeConnectionClosed()