boolean (@NotNull String baseQualifiedName, @NotNull Type checkedType) { if (checkedType instanceof ReferenceType) { if (CommonClassNames.JAVA_LANG_OBJECT.equals(baseQualifiedName)) { return true; } return getSuperClass(baseQualifiedName, (ReferenceType)checkedType) != null; } return baseQualifiedName.equals(checkedType.name()); }