void () { //noinspection ConstantConditions if (startedAction != null && startedAction.equals(myInAction)) { String text = popup.getEnteredText(); ourLastStrings.put(myInAction, Pair.create(text, popup.getSelectedIndex())); updateHistory(text); myInAction = null; } if (filter != null) { filter.close(); } }