private static DnDAction getDnDActionForPlatformAction(int platformAction) {
    boolean altOnly = UISettings.getInstance().getDndWithPressedAltOnly();

    return switch (platformAction) {
      case DnDConstants.ACTION_COPY -> altOnly ? DnDAction.MOVE : DnDAction.COPY;
      case DnDConstants.ACTION_MOVE -> altOnly ? DnDAction.COPY : DnDAction.MOVE;
      case DnDConstants.ACTION_LINK -> DnDAction.LINK;
      default -> null;
    };
  }
private static DnDAction getDnDActionForPlatformAction(int platformAction)