right now I'm doing a research regarding a possible plugin development. We need to develop a 2D graphics plugin which will generate an UML diagram (kind of). I see that Intellij has an UML generator based on the code, but that plugin is not open source unfortunately. Can enybody suggest some starts points to this? For instance, what would be the most suitable Java 2D API for such application? Is there an API that IntelliJ is offering for 2D graphics?