''

def _process_widgets(self, names, spy_window):

    widgets = []
    dockwidgets = []
    for name in names:
        base = name.split('.')[0]
        temp = getattr(spy_window, base)
        if ('get_current_editor()' in name):
            temp = temp.get_current_editor()
            temp = getattr(temp, name.split('.')[(-1)])
        widgets.append(temp)
        temp = getattr(temp, 'dockwidget', temp)
        dockwidgets.append(temp)
    return (widgets, dockwidgets)
