boolean (@NotNull PyClass pyClass) { final Set<String> blackList = Sets.newHashSet(ignoredBaseClasses); if (blackList.contains(pyClass.getQualifiedName())) { return true; } for (PyClassLikeType ancestor : pyClass.getAncestorTypes(myTypeEvalContext)) { if (ancestor != null && blackList.contains(ancestor.getClassQName())) { return true; } } return false; }