Manage external references when copy&pasting an element into a new project
Example: When a component is copied and pasted into a new project (different from its original project), it will currently lose all its external references. If the component had e.g. in its original project some ports with complex data types and a code specification with some user-defined functions, it will lose all the references to these artifacts stored in the data dictionary of the original project. It doesn't matter if the new project has the same functions and data types in its own data dictionary; the references will be lost.
The goal is to identify all of these external references and copy them together with the actual main artificat (the component in the case above) so that they can be pasted (together with updated links) in the new project as well.
Currently, the user only gets (always) the warning that external references might be lost when pasting something in a new project.
This is connected to #4150 and might get solved together. (Maybe copyToRefMap() can help)