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