void (boolean isForward) { myNotFoundState = true; FindModel findModel = new FindModel(); findModel.copyFrom(myFindModel); findModel.setForward(isForward); int caretOffset = myCursor != null ? myCursor.getEndOffset() : myEditor.getCaretModel().getOffset(); FindUtil.processNotFound(myEditor, caretOffset, findModel.getStringToFind(), findModel, getProject()); }