private static boolean areTypesEquivalent( @NotNull KotlinType typeInSuper, @NotNull KotlinType typeInSub, @NotNull KotlinTypeChecker typeChecker) { boolean bothErrors = typeInSuper.isError() && typeInSub.isError(); return bothErrors || typeChecker.equalTypes(typeInSuper, typeInSub); }