void () { final int caretOffset = myEditor.getCaretModel().getOffset(); if (caretOffset < myStartCaret) { scheduleRestart(); myRestartingPrefixConditions.clear(); return; } if (shouldRestartCompletion(myEditor, myRestartingPrefixConditions, "")) { scheduleRestart(); myRestartingPrefixConditions.clear(); return; } hideAutopopupIfMeaningless(); }