public static bool Remove(T item, int mask) { var r1 = GlobalList <T> .Remove(item); var r2 = maskedLists[mask].Remove(item); return(r1 || r2); }