public static bool IsSectorFreeFromJunction(this RailTrack current, double sectorLength, Junction junction)
        {
            if (current.inJunction == junction)
            {
                return(IsSectorFree(current, sectorLength, false));
            }
            else if (current.outJunction == junction)
            {
                return(IsSectorFree(current, sectorLength, true));
            }

#if DEBUG
            Terminal.Log($"IsSectorFreeFromJunction: not connected to given junction... track {current.logicTrack.ID.FullID} junction {junction?.GetInstanceID()} inJunction {current.inJunction?.GetInstanceID()} outJunction {current.outJunction?.GetInstanceID()}");
#endif
            return(true);
        }