List<PsiClassType> (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; }