void () { MyTrackingInspection tool = registerInspection(new MyTrackingInspection()); configureByText(JavaFileType.INSTANCE, "class X { void f() { <caret> } }"); waitForDaemon(); tool.visited.clear(); getPsiManager().dropPsiCaches(); waitForDaemon(); assertNotEmpty(tool.visited); }