public static bool GetFlag(MLPalFlag flag, ushort paltype) => (paltype & (ushort)flag) != 0;
//TODO remove? public bool GetFlag(MLPalFlag flag) => (paltype & (ushort)flag) != 0;