void () { if (!myHasFindWhatPanel) { setOKActionEnabled(true); } else { boolean hasSelected = isSelected(myCbUsages) || isSelected(myCbSearchForBase) || isSelected(myCbImplementingMethods) || isSelected(myCbOverridingMethods) || isSelected(myCbImplicitToString); setOKActionEnabled(hasSelected); } }