void () { mySettings.myAsyncScheduleAnnotations = StreamEx.of(myAsyncSchedulePanel.getAnnotations()) .filter(e -> !e.equals(getAnnotationName(true))) .toArray(ArrayUtilRt.EMPTY_STRING_ARRAY); mySettings.myAsyncExecuteAnnotations = StreamEx.of(myAsyncExecutePanel.getAnnotations()) .filter(e -> !e.equals(getAnnotationName(false))) .toArray(ArrayUtilRt.EMPTY_STRING_ARRAY); super.doOKAction(); }