private static List<PsiClassType> extractClassTypes(ExpectedTypeInfo[] infos) {
    final List<PsiClassType> expectedClassTypes = new SmartList<>();
    for (PsiType type : ExpectedTypesGetter.extractTypes(infos, true)) {
      if (type instanceof PsiClassType classType && classType.resolve() != null) {
        expectedClassTypes.add(classType);
      }
    }
    return expectedClassTypes;
  }
private static List<PsiClassType> extractClassTypes(ExpectedTypeInfo[] infos)