You can install the free plugin – Code Iris.

I use PlantUML for creating diagrams

Other tools of this type in the IntelliJ IDEA are paid.
I chose a more powerful alternative:
In Netbeans – easyUML
In Eclipse – ObjectAid, Papyrus, Eclipse Modeling Tools
