You can populate existing Unified Modeling Language (UML) class
diagrams with Java™ elements.
To populate a class diagram with Java elements, in the Package
Explorer view. right-click the selected Java classes and interfaces; then click Visualize > Add to Current Diagram.