@Override
  protected Collection<AbstractTreeNode<?>> getChildrenImpl() {
    PyElement value = getValue();
    // for performance reasons, we don't show nested functions here
    if (value instanceof PyClass pyClass) {
      List<AbstractTreeNode<?>> result = new ArrayList<>();
      for (PyClass aClass : pyClass.getNestedClasses()) {
        result.add(new PyElementNode(myProject, aClass, getSettings()));
      }
      for (PyFunction function : pyClass.getMethods()) {
        result.add(new PyElementNode(myProject, function, getSettings()));
      }
      return result;
    }
    return Collections.emptyList();
  }
@Override
  protected Collection<AbstractTreeNode<?>> getChildrenImpl()