bool isInstance(Object? obj) { if (obj == null) return false; final resolved = resolve(); return resolved?.isInstance(obj) ?? false; }