#57231Refactor element dependency resolving
Description
Dependency element resolving of nested data structures currently is used in CommandMap only. However the logic can be used for other tasks as well, like e.g. showing nested structures in the workspaces module. Callback methods are extracted to the new ElementEntityProcessor to reduce further code duplication.