def get_context_menu_for_selected_object(self) -> QMenu | None:
        """
        Returns a QMenu object for the currently selected QBlockCodeObj
        """
        obj = self.infodock.selected_qblock_code_obj
        if isinstance(obj, QVariableObj):
            rename_act = QAction("Re&name", self)
            rename_act.triggered.connect(self.rename_selected_object)
            mnu = QMenu()
            mnu.addActions([rename_act])
            return mnu
        else:
            return None

        Returns a QMenu object for the currently selected QBlockCodeObj
        
angrmanagement/ui/views/disassembly_view.py