static List<PsiElement> collectAllStubChildren(PsiElement e, StubElement<?> stub) {
    if (stub != null) {
      final List<PsiElement> result = new ArrayList<>();
      final List<StubElement<?>> children = stub.getChildrenStubs();
      for (StubElement<?> child : children) {
        result.add(child.getPsi());
      }
      return result;
    }
    else {
      return PyPsiUtilsCore.collectAllChildren(e);
    }
  }
static List<PsiElement> collectAllStubChildren(PsiElement e, StubElement<?> stub)