@NotNull
  private static List<@NotNull PyCallableType> selectCallableTypes(@NotNull List<PsiElement> resolveResults,
                                                                   @NotNull TypeEvalContext context) {
    return StreamEx
      .of(resolveResults)
      .select(PyTypedElement.class)
      .map(context::getType)
      .flatMap(PyTypeUtil::toStream)
      .select(PyCallableType.class)
      .toList();
  }
@NotNull
  private static List<@NotNull PyCallableType> selectCallableTypes(@NotNull List<PsiElement> resolveResults,
                                                                   @NotNull TypeEvalContext context)