You can use domain modeling class diagrams to create extends
and implements relationships between Java elements.
You can also create outgoing (from source to target) and incoming
(from target to source) relationships between Java elements
by using the relationship handles.