private static @Nullable KeymapManager getKeymapManager() {
    return ApplicationManager.getApplication().isDisposed() ? null : KeymapManager.getInstance();
  }
private static @Nullable KeymapManager getKeymapManager()