def METHOD_NAME(self):
    pluginHandlerSingleton = slicer.qSlicerSubjectHierarchyPluginHandler.instance()
    currentItemID = pluginHandlerSingleton.currentItem()
    if not currentItemID:
        logging.error("Invalid current item")
    shNode = pluginHandlerSingleton.subjectHierarchyNode()
    segmentationNode = shNode.GetItemDataNode(currentItemID)
    # Select segmentation node in segment statistics
    pluginHandlerSingleton.pluginByName('Default').switchToModule('SegmentStatistics')
    statisticsWidget = slicer.modules.segmentstatistics.widgetRepresentation().self()
    statisticsWidget.segmentationSelector.setCurrentNode(segmentationNode)
    # Get source volume from segmentation
    sourceVolume = segmentationNode.GetNodeReference(slicer.vtkMRMLSegmentationNode.GetReferenceImageGeometryReferenceRole())
    if sourceVolume is not None:
        statisticsWidget.scalarSelector.setCurrentNode(sourceVolume)