void () { configureByText(JavaFileType.INSTANCE, """ class Foo { @SuppressWarnings({"Sil<caret>lyAssignment"}); void foo() { int i = 0; i = i; } }"""); enableInspectionTool(new SillyAssignmentInspection()); ctrlShiftF7(); assertRangeText("i"); }