private static void PreferInternalEntitiesOverNonInternal(List<IEntity> matches)
{
bool isAmbiguousBetweenInternalAndExternalEntities = matches.Contains(EntityPredicates.IsInternalEntity) &&
matches.Contains(EntityPredicates.IsNonInternalEntity);
if (isAmbiguousBetweenInternalAndExternalEntities)
matches.RemoveAll(EntityPredicates.IsNonInternalEntity);
}