If you want to do this, I think you need to click on the display diagram in a specific source folder or package, and then right-click on the diagram, and you will have the opportunity to create classes or interfaces. When you right-click on a class, it will also be possible to create methods and fields in this class.
So, find the show diagram, then right-click and use the context menu to create classes / methods, etc.
source share