void () { init(""" abc abc abc"""); initFind(); setTextToFind("b"); checkResultByText(""" a<selection>b<caret></selection>c abc abc"""); new EditorMouseFixture((EditorImpl)myFixture.getEditor()).clickAt(0, 1); addOccurrenceFromEditor(); addOccurrenceFromEditor(); checkResultByText(""" <selection>a<caret>bc</selection> <selection>a<caret>bc</selection> abc"""); nextOccurrenceFromEditor(); checkResultByText(""" <selection>a<caret>bc</selection> abc <selection>a<caret>bc</selection>"""); prevOccurrenceFromEditor(); checkResultByText(""" <selection>a<caret>bc</selection> <selection>a<caret>bc</selection> abc"""); removeOccurrenceFromEditor(); checkResultByText(""" <selection>a<caret>bc</selection> abc abc"""); allOccurrencesFromEditor(); checkResultByText(""" <selection>a<caret>bc</selection> <selection>a<caret>bc</selection> <selection>a<caret>bc</selection>"""); assertNotNull(getEditorSearchComponent()); }