Returns the :class:`umbra.components.factory.script_editor.nodes.EditorNode` class Nodes with given editor.

        :param node: Node to start walking from.
        :type node: AbstractNode or AbstractCompositeNode or Object
        :param editor: Editor.
        :type editor: Editor
        :return: EditorNode nodes.
        :rtype: list

def get_editor_nodes(self, editor, node=None):
        """
        Returns the :class:`umbra.components.factory.script_editor.nodes.EditorNode` class Nodes with given editor.

        :param node: Node to start walking from.
        :type node: AbstractNode or AbstractCompositeNode or Object
        :param editor: Editor.
        :type editor: Editor
        :return: EditorNode nodes.
        :rtype: list
        """

        return [editor_node for editor_node in self.list_editor_nodes(node) if editor_node.editor == editor]