void (@NotNull Set<PsiType> processedTypes, @NotNull PsiType expectedType, @NotNull List<ExpectedTypeInfo> result, @NotNull ExpectedTypeInfo expectedTypeInfo) { if (!processedTypes.contains(expectedType)) { processedTypes.add(expectedType); result.add(expectedTypeInfo); } }