private bool IsUxmlFactory(IClass cls) { var baseClass = cls.GetBaseClassType(); if (baseClass == null) { return(false); } return(myUxmlFactoryBaseClasses.Contains(baseClass.GetClrName())); }