void (boolean isOk) { super.close(isOk); if (isOk) { final List<Object> elements = getChosenElements(); if (!elements.isEmpty()) { myActionListener.elementChosen(elements.get(0)); } doOKAction(); } else { doCancelAction(); } }