# jetbrains/intellij-community architecture

> Architecture diagram of the GitHub repository jetbrains/intellij-community, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jetbrains/intellij-community
- Repository: https://github.com/jetbrains/intellij-community

## Overview

This is a cross-section of IntelliJ’s open-source IDE codebase, not one standalone application. The main user workflow represented here is editing Java: IDE services inspect Java PSI and type/annotation information to provide language-aware behavior. The tree also shows separate product capabilities for regex editing, command-line language support, database grids, image handling, dependency resolution, and Fleet’s editor/data layer. Relationships are limited to explicit README claims and references in the supplied source index or excerpts; many runtime registrations and calls are not shown.

Main entry points: [`java/java-psi-api/src/com/intellij/psi/PsiClass.java`](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/PsiClass.java) (Java PSI model), [`java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java`](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java) (Java PSI utilities), [`fleet/andel/srcCommonMain/andel/text`](https://github.com/jetbrains/intellij-community/tree/master/fleet/andel/srcCommonMain/andel/text) (Text and editing), [`java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java`](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java) (Nullability service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_java["Java language services"]
  node_java_psi["Java PSI model<br/>[PsiClass.java]"]
  node_java_types["Java types<br/>[PsiType.java]"]
  node_java_util["Java PSI utilities<br/>[PsiUtil.java]"]
  node_annotations["Annotation utilities"]
  node_nullability["Nullability service"]
end

subgraph group_languages["Language support"]
  node_regex["Regex editor support"]
  node_regex_inspections["Regex inspections"]
  node_command_language["Command-line language"]
  node_command_model["Command model"]
end

subgraph group_ide["IDE features"]
  node_grid["Data grid"]
  node_grid_mutations["Grid mutations"]
  node_image_service["Image file service"]
  node_svg_conversion["SVG conversion"]
end

subgraph group_fleet["Fleet editor data"]
  node_andel_text["Text and editing"]
  node_andel_anchors["Anchors and ranges<br/>[AnchorStorage.kt]"]
  node_rhizome_storage[("Durable storage<br/>[Storage.kt]")]
end

subgraph group_infra["Dependency resolution"]
  node_resolver["Artifact resolution"]
end

node_developer(("IDE user"))

node_developer -.->|"edits Java"| node_java_psi
node_java_psi -.->|"inspected by"| node_java_util
node_nullability -->|"uses type lookup"| node_java_util
node_nullability -->|"finds annotations"| node_annotations
node_java_util -->|"imports"| node_annotations
node_java_types -->|"resolves class types"| node_java_psi
node_developer -.->|"edits patterns"| node_regex
node_regex -.->|"supports inspections"| node_regex_inspections
node_developer -.->|"edits commands"| node_command_language
node_command_language -.->|"uses command definitions"| node_command_model
node_developer -.->|"edits tabular data"| node_grid
node_grid -->|"records mutations"| node_grid_mutations
node_developer -.->|"opens images"| node_image_service
node_image_service -.->|"converts SVG"| node_svg_conversion
node_developer -.->|"edits text"| node_andel_text
node_andel_text -->|"tracks ranges"| node_andel_anchors
node_rhizome_storage -.->|"uses text model"| node_andel_text
node_developer -.->|"resolves dependencies"| node_resolver

click node_java_psi "https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/PsiClass.java"
click node_java_types "https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/PsiType.java"
click node_java_util "https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java"
click node_annotations "https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/codeInsight/AnnotationUtil.java"
click node_nullability "https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java"
click node_regex "https://github.com/jetbrains/intellij-community/tree/master/RegExpSupport/src/org/intellij/lang/regexp"
click node_regex_inspections "https://github.com/jetbrains/intellij-community/tree/master/RegExpSupport/src/org/intellij/lang/regexp/inspection"
click node_command_language "https://github.com/jetbrains/intellij-community/tree/master/commandInterface/src/com/intellij/commandInterface/commandLine"
click node_command_model "https://github.com/jetbrains/intellij-community/tree/master/commandInterface/src/com/intellij/commandInterface/command"
click node_grid "https://github.com/jetbrains/intellij-community/tree/master/grid/impl/src/run/ui"
click node_grid_mutations "https://github.com/jetbrains/intellij-community/blob/master/grid/impl/src/datagrid/MutationsStorageImpl.java"
click node_image_service "https://github.com/jetbrains/intellij-community/blob/master/images/src/org/intellij/images/editor/impl/ImageFileService.kt"
click node_svg_conversion "https://github.com/jetbrains/intellij-community/blob/master/images/src/org/intellij/images/actions/ConvertSvgToPngService.kt"
click node_andel_text "https://github.com/jetbrains/intellij-community/tree/master/fleet/andel/srcCommonMain/andel/text"
click node_andel_anchors "https://github.com/jetbrains/intellij-community/blob/master/fleet/andel/srcCommonMain/andel/intervals/AnchorStorage.kt"
click node_rhizome_storage "https://github.com/jetbrains/intellij-community/blob/master/fleet/rhizomedb.transactor/srcCommonMain/fleet/kernel/Storage.kt"
click node_resolver "https://github.com/jetbrains/intellij-community/tree/master/aether-dependency-resolver/src/org/jetbrains/idea/maven/aether"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_java_psi,node_java_types,node_java_util,node_annotations,node_nullability,node_developer toneBlue
class node_regex,node_regex_inspections,node_command_language,node_command_model toneAmber
class node_grid,node_grid_mutations,node_image_service,node_svg_conversion toneMint
class node_andel_text,node_andel_anchors,node_rhizome_storage toneRose
class node_resolver toneIndigo
```

## Components

### Java language services

- [Java PSI model](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/PsiClass.java): `java/java-psi-api/src/com/intellij/psi/PsiClass.java`
- [Java types](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/PsiType.java): `java/java-psi-api/src/com/intellij/psi/PsiType.java`
- [Java PSI utilities](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java): `java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java`
- [Annotation utilities](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/codeInsight/AnnotationUtil.java): `java/java-psi-api/src/com/intellij/codeInsight/AnnotationUtil.java`
- [Nullability service](https://github.com/jetbrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java): `java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java`

### Language support

- [Regex editor support](https://github.com/jetbrains/intellij-community/tree/master/RegExpSupport/src/org/intellij/lang/regexp): `RegExpSupport/src/org/intellij/lang/regexp`
- [Regex inspections](https://github.com/jetbrains/intellij-community/tree/master/RegExpSupport/src/org/intellij/lang/regexp/inspection): `RegExpSupport/src/org/intellij/lang/regexp/inspection`
- [Command-line language](https://github.com/jetbrains/intellij-community/tree/master/commandInterface/src/com/intellij/commandInterface/commandLine): `commandInterface/src/com/intellij/commandInterface/commandLine`
- [Command model](https://github.com/jetbrains/intellij-community/tree/master/commandInterface/src/com/intellij/commandInterface/command): `commandInterface/src/com/intellij/commandInterface/command`

### IDE features

- [Data grid](https://github.com/jetbrains/intellij-community/tree/master/grid/impl/src/run/ui): `grid/impl/src/run/ui`
- [Grid mutations](https://github.com/jetbrains/intellij-community/blob/master/grid/impl/src/datagrid/MutationsStorageImpl.java): `grid/impl/src/datagrid/MutationsStorageImpl.java`
- [Image file service](https://github.com/jetbrains/intellij-community/blob/master/images/src/org/intellij/images/editor/impl/ImageFileService.kt): `images/src/org/intellij/images/editor/impl/ImageFileService.kt`
- [SVG conversion](https://github.com/jetbrains/intellij-community/blob/master/images/src/org/intellij/images/actions/ConvertSvgToPngService.kt): `images/src/org/intellij/images/actions/ConvertSvgToPngService.kt`

### Fleet editor data

- [Text and editing](https://github.com/jetbrains/intellij-community/tree/master/fleet/andel/srcCommonMain/andel/text): `fleet/andel/srcCommonMain/andel/text`
- [Anchors and ranges](https://github.com/jetbrains/intellij-community/blob/master/fleet/andel/srcCommonMain/andel/intervals/AnchorStorage.kt): `fleet/andel/srcCommonMain/andel/intervals/AnchorStorage.kt`
- [Durable storage](https://github.com/jetbrains/intellij-community/blob/master/fleet/rhizomedb.transactor/srcCommonMain/fleet/kernel/Storage.kt): `fleet/rhizomedb.transactor/srcCommonMain/fleet/kernel/Storage.kt`

### Dependency resolution

- [Artifact resolution](https://github.com/jetbrains/intellij-community/tree/master/aether-dependency-resolver/src/org/jetbrains/idea/maven/aether): `aether-dependency-resolver/src/org/jetbrains/idea/maven/aether`

### Other components

- **IDE user**

## Connections

- IDE user → Java PSI model: edits Java
- Java PSI model → Java PSI utilities: inspected by (evidence: `java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java`)
- Nullability service → Java PSI utilities: uses type lookup (evidence: `java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java`)
- Nullability service → Annotation utilities: finds annotations (evidence: `java/java-psi-api/src/com/intellij/codeInsight/NullableNotNullManager.java`)
- Java PSI utilities → Annotation utilities: imports (evidence: `java/java-psi-api/src/com/intellij/psi/util/PsiUtil.java`)
- Java types → Java PSI model: resolves class types (evidence: `java/java-psi-api/src/com/intellij/psi/PsiType.java`)
- IDE user → Regex editor support: edits patterns
- Regex editor support → Regex inspections: supports inspections
- IDE user → Command-line language: edits commands
- Command-line language → Command model: uses command definitions
- IDE user → Data grid: edits tabular data
- Data grid → Grid mutations: records mutations (evidence: `grid/impl/src/datagrid/MutationsStorageImpl.java`)
- IDE user → Image file service: opens images
- Image file service → SVG conversion: converts SVG
- IDE user → Text and editing: edits text
- Text and editing → Anchors and ranges: tracks ranges (evidence: `fleet/andel/srcCommonMain/andel/intervals/AnchorStorage.kt`)
- Durable storage → Text and editing: uses text model
- IDE user → Artifact resolution: resolves dependencies
