The plugin shows how to use the internal diagram framework available for IntelliJ IDEA Ultimate.

https://github.com/bulenkov/IntelliJIdeaDiagramDemo/