JTree selectedTree = (JTree) selected.getViewport().getView(); return selectedTree;
Object view = selected.getViewport().getView(); if ( view instanceof JTree ) { return (JTree)view; } return null;
    private JTree getCurrentBugTree() {        JScrollPane selected = (JScrollPane) groupByTabbedPane.getSelectedComponent();        JTree selectedTree = (JTree) selected.getViewport().getView();        return selectedTree;    }