void () { MyTrackingInspection tool = registerInspection(new MyWholeInspection()); configureByText(JavaFileType.INSTANCE, "class X { void f() { <caret> } }"); List<HighlightInfo> infos = doHighlighting(HighlightSeverity.WARNING); assertEmpty(infos); int visitedCount = new HashSet<>(tool.visited).size(); tool.visited.clear(); type(" "); // white space modification infos = doHighlighting(HighlightSeverity.WARNING); assertEmpty(infos); int countAfter = new HashSet<>(tool.visited).size(); assertTrue("visitedCount = "+visitedCount+"; countAfter="+countAfter, countAfter >= visitedCount); }