boolean (JList list) { if (!(list instanceof XDebuggerFramesList)) { return false; } var selectedValue = list.getSelectedValue(); if (!(selectedValue instanceof XStackFrame)) { return false; } try { var dropFrameHandler = findDropFrameHandler((XDebuggerFramesList)list); if (dropFrameHandler == null) { return false; } return dropFrameHandler.canDrop((XStackFrame)selectedValue); } catch (Throwable ignore) { } return false; }