PSI and Architecture IntelliJ IDEA 7 min read

Custom IntelliJ Tool Window architecture for non-blocking enterprise plugins

A well-built IntelliJ Tool Window feels like a native part of the IDE. A poorly built one freezes typing, leaks project memory on window close, and breaks in light or dark themes. Here is the architecture we use across all 150 Zovo plugins.

Engineering context

Why local IDE checks beat late CI failures

Applies to IntelliJ Platform 2025.2+ through 2026.3+.

IntelliJ Platform enforces strict threading rules. File scanning and PSI traversal must run off the Event Dispatch Thread (EDT), while Swing UI updates must run on it. Getting that boundary right from day one eliminates UI freezes and Plugin Verifier errors.

Want a production-grade custom Tool Window built by the engineer behind 150 verified JetBrains plugins? Custom JetBrains Plugin builds start at $70,000 fixed scope.

Implementation walkthrough

Four-step production setup

Tested against JetBrains Plugin Verifier and offline enterprise policies.

1

Register a lazy ToolWindowFactory in plugin.xml

Implement ToolWindowFactory and DumbAware so your panel loads only when opened and doesn't crash while IntelliJ indexes a large repository.

2

Run parsing on background threads with ReadAction.nonBlocking

Offload YAML, JSON, SQL, or PSI analysis to background pooled threads using ReadAction.nonBlocking or Kotlin coroutines scoped to a project service, then coalesce UI refreshes back on the EDT.

3

Use native JBUI, JBTable, and JBColor tokens

Build layouts with IntelliJ's Swing components and theme-aware JBColor values so your plugin looks crisp in New UI Dark, Light, and High Contrast themes without hardcoded hex colors.

4

Bind listeners to Disposables to prevent memory leaks

Attach VirtualFileManager and MessageBus subscriptions to the ToolWindow's Disposable parent so closing a project releases 100% of allocated references.

plugin.xml (registering a project-scoped Tool Window)
<extensions defaultExtensionNs="com.intellij">
  <toolWindow id="Config Auditor"
              anchor="right"
              icon="/icons/toolWindow.svg"
              factoryClass="com.company.ui.AuditorToolWindowFactory"/>
</extensions>

Plugins referenced in this guide

More IntelliJ IDEA plugins

Agent Handoff Board icon

Agent Handoff Board

com.notemods.agent-handoff-board
Live ID 36699 AI and Agents

Coordinate multi-agent coding tasks with a conflict-free 1-file-per-task Markdown Kanban board inside your JetBrains IDE.

HTTP Diff & Replay icon

HTTP Diff & Replay

com.notemods.http-diff-replay
Queued APIs and Messaging

Parse .http request specs and curl commands, diff baseline vs candidate API responses, redact sensitive auth headers, and verify latency/contract regressions directly inside your JetBrains IDE.

SQL Query Bench icon

SQL Query Bench

com.notemods.sql-query-bench
Queued Databases and Data

Format SQL queries, lint performance anti-patterns, parse EXPLAIN ANALYZE plans, and benchmark before/after query optimizations directly inside your JetBrains IDE.

Log & Trace Filter icon

Log & Trace Filter

com.notemods.log-trace-filter
Queued Proxy and Dev Tools

Parse JSON-lines (NDJSON) and structured text logs, filter by severity/regex/traceId, deduplicate recurring error bursts, and compute per-trace latency timelines inside your JetBrains IDE.

FREEMIUM Native JetBrains Marketplace licensing

$29/yr Personal · $59/yr Org (30-day free trial, zero telemetry)

Core parsers and sidebar inspectors stay free forever with no account required. Upgrade inside JetBrains Marketplace for deep security audits, secret leak scanners, breaking-change guards, and JSON or Markdown report exports. Need a private air-gapped plugin or custom PSI inspection engine for your company?

Related JetBrains engineering guides

View all 65 guides