---
name: ssr
description: Guide for using Structural Search and Replace in IntelliJ. Use when creating or modifying SSR inspections or search patterns.
---
# Structural Search and Replace
- You must use terminal search (`ls`, `cat` and `grep`) to read directory `.idea`. Do not use IDE search.
- The contents of structural search inspections is located in `.idea/inspectionProfiles/idea_default.xml`
- Here is an example of a Structural Search and Replace inspection:
```xml
```
This node should be located under `
```
This node should be located under `
```
- You must run `InspectionProfileConsistencyTest` after changing xml files