public static @NotNull Shortcut newInstance(KeyboardGestureAction.ModifierType type, KeyStroke stroke) {
    return switch (type) {
      case dblClick -> new DblClick(stroke);
      case hold -> new Hold(stroke);
    };
  }
public static @NotNull Shortcut newInstance(KeyboardGestureAction.ModifierType type, KeyStroke stroke)