boolean (Object toSelect) { if (toSelect instanceof XStackFrame) { if (myFramesList.selectFrame((XStackFrame)toSelect)) return true; if (myAllFramesLoaded && myFramesList.getSelectedValue() == null) { LOG.error("Frame was not found, " + myToSelect.getClass() + " must correctly override equals"); } } else if (toSelect instanceof Integer) { if (myFramesList.selectFrame((int)toSelect)) return true; } return false; }