public static void installOnComponent(@NotNull JComponent component, @Nullable AWTEventListener listener) {
    try {
      new MacGestureSupportForEditor(component, listener);
    }
    catch (Throwable t) {
      Logger.getInstance(MacGestureSupportInstaller.class).warn("macOS gesture support failed", t);
    }
  }
public static void installOnComponent(@NotNull JComponent component, @Nullable AWTEventListener listener)