Sequence Diagrams in IntelliJ, Eclipse, and Other JVM IDEs
- IntelliJ Ultimate has built-in sequence diagram generation from Java code
- Eclipse has ObjectAid and SequenceDiagram plugins
- Both work only with Java/JVM code by default
- Browser tool handles any language via text-based Mermaid syntax
Table of Contents
IntelliJ IDEA Ultimate and Eclipse both generate sequence diagrams directly from Java code. You highlight a method, right-click, and the IDE traces the call chain to produce a diagram. Useful for reverse-engineering unfamiliar codebases. Less useful if you are writing Python, Go, TypeScript, or designing a system before the code exists.
Here is what each IDE offers, and when a text-based browser tool is actually faster.
IntelliJ IDEA Ultimate: Built-In Generation
IntelliJ Ultimate (the paid version) includes a Diagrams feature that generates sequence diagrams from Java source code. Community Edition does not have this feature.
To generate a sequence diagram:
- Open a Java method in the editor
- Right-click inside the method body
- Select Diagrams → Show Diagram... → Java Method Calls
- IntelliJ traces the method calls and generates the diagram
The diagram shows the method call hierarchy starting from your selected method. IntelliJ follows the code paths to produce an accurate picture of runtime behavior (based on static analysis). You can export the diagram as an image through the toolbar.
Strengths: accurate for existing code, no manual drawing required. Limitations: only works for Java/Kotlin/Groovy (JVM languages). Does not show external API calls, database queries, or async operations unless they are explicit method calls in your code. Cannot be used for design work before code exists.
For a free alternative that works with any language and can represent designs not yet implemented, use a text-based tool. See our sequence diagram examples for copy-paste code you can adapt in seconds.
Eclipse: ObjectAid and SequenceDiagram Plugins
Eclipse does not have sequence diagram generation built in, but several plugins fill the gap:
ObjectAid UML Explorer: Generates class and sequence diagrams from Java source. Install from the Eclipse Marketplace. Right-click a Java file or method, select Open With → ObjectAid Diagram Editor.
SequenceDiagram.org plugin: Imports sequence diagrams created on sequencediagram.org. Less integrated but works with any language.
PlantUML plugin: Renders PlantUML diagrams in Eclipse. Requires Java (already required for Eclipse). Useful if you write PlantUML code in .puml files within your Eclipse project.
Eclipse plugins are less polished than IntelliJ's built-in tools. Setup takes more time, and the generated diagrams often require manual cleanup. For teams standardizing on Eclipse, ObjectAid is the most mature choice, but it has not seen major updates in years.
For quick diagram creation that does not depend on Eclipse at all, the browser-based tool works regardless of which IDE you use. Keep the diagram tool open in a tab, switch between IDE and browser as needed.
Sell Custom Apparel — We Handle Printing & Free ShippingGenerating Sequence Diagrams from Code: When It Works
Code-to-diagram generation sounds useful but has real limitations:
- Static analysis misses dynamic dispatch. If a method is called through an interface or lambda, the generator may not know which implementation actually runs.
- External calls are invisible. Database queries, HTTP requests, and message queue publishes show up as method calls, not as calls to external systems.
- Async is collapsed. Threaded, async, or event-driven code looks synchronous in static analysis.
- Generated diagrams are often too detailed. Every helper method appears, making the diagram harder to read than a hand-crafted version.
Where generation works well: reverse-engineering a small, synchronous Java method to understand what it does. For design work, API documentation, microservice communication, and system architecture, hand-crafted sequence diagrams with appropriate abstraction level produce much better results.
The right workflow for most teams: use hand-crafted diagrams in text format (Mermaid or PlantUML). Store them in your repository. Reference them in design documents. For reverse-engineering a specific piece of unfamiliar code, use IntelliJ's built-in generation as a one-off investigation tool.
Other JetBrains IDEs: WebStorm, PyCharm, RubyMine
Non-Java JetBrains IDEs (WebStorm, PyCharm, RubyMine, GoLand, PhpStorm) do not include sequence diagram generation. The Diagrams feature is Ultimate-only and Java-focused.
For these IDEs, the options are:
- Mermaid Markdown Preview plugin — Available for most JetBrains IDEs. Renders Mermaid diagrams in markdown files. Similar to the VS Code Mermaid extension.
- PlantUML Integration plugin — Works across all JetBrains IDEs. Requires Java and Graphviz.
- External editor — Keep a browser tab open to our sequence diagram tool, use it alongside your IDE.
The plugin landscape in JetBrains IDEs is generally good, but each plugin has its own quirks. For cross-team consistency (Java devs in IntelliJ, Python devs in PyCharm, JS devs in WebStorm), standardizing on Mermaid syntax and using whichever rendering tool each IDE supports keeps everyone able to read and edit the same diagram files.
The diagram code lives in your repository as plain text. Whether Jane renders it in IntelliJ and Jake renders it in our browser tool, the source is identical. This portability is the real advantage of text-based diagrams over IDE-specific generation.
Works With Any IDE
Text-based diagrams in your browser. Copy the source to any IDE, any language, any project.
Open Free Sequence Diagram MakerFrequently Asked Questions
Can IntelliJ generate sequence diagrams from Java code?
Yes, IntelliJ IDEA Ultimate (not Community) has built-in sequence diagram generation. Right-click in a Java method and select Diagrams → Show Diagram → Java Method Calls. Community Edition does not include this feature.
How do I create sequence diagrams in Eclipse?
Eclipse does not have built-in sequence diagram generation. Install the ObjectAid plugin for Java-based generation, or use PlantUML with the PlantUML Eclipse plugin. For language-agnostic work, a browser-based tool alongside Eclipse works well.
Can I generate sequence diagrams from Python code?
Most IDE-based generators are Java-only. For Python, the cleanest approach is hand-crafted sequence diagrams in Mermaid or PlantUML, stored as text files in your repository. This works with any IDE and renders in GitHub automatically.
Is IntelliJ better than browser-based tools for sequence diagrams?
Different use cases. IntelliJ excels at reverse-engineering existing Java code. Browser-based text tools excel at design work, cross-language use, and when you want diagrams versioned alongside code. Many teams use both: IntelliJ for investigation, text-based tools for documentation.

