def METHOD_NAME(self):
    layers = []
    opLane = self.topLevelOperatorView
    # This code depends on a specific order for the export slots.
    # If those change, update this function!
    selection_names = opLane.SelectionNames.value
    # see comment above
    for name, expected in zip(
        selection_names[0:5], ["Probabilities", "Simple Segmentation", "Uncertainty", "Features", "Labels"]
    ):
        assert name.startswith(expected), "The Selection Names don't match the expected selection names."
    selection = selection_names[opLane.InputSelection.value]
    if selection.startswith("Probabilities"):
        previewLayers = self._initPredictionLayers(opLane.ImageToExport)
        for layer in previewLayers:
            layer.visible = False
            layer.name = layer.name + "- Preview"
        layers += previewLayers
    elif selection.startswith("Simple Segmentation") or selection.startswith("Labels"):
        previewLayer = self._initColortablelayer(opLane.ImageToExport)
        if previewLayer:
            previewLayer.visible = False
            previewLayer.name = selection + " - Preview"
            layers.append(previewLayer)
    elif selection.startswith("Uncertainty"):
        if opLane.ImageToExport.ready():
            previewUncertaintySource = createDataSource(opLane.ImageToExport)
            previewLayer = AlphaModulatedLayer(
                previewUncertaintySource,
                tintColor=QColor(0, 255, 255),  # cyan
                normalize=(0.0, 1.0),
            )
            previewLayer.opacity = 0.5
            previewLayer.visible = False
            previewLayer.name = "Uncertainty - Preview"
            layers.append(previewLayer)
    else:  # Features and all other layers.
        if selection.startswith("Features"):
            warnings.warn(
                "Not sure how to display '{}' result.  Showing with default layer settings.".format(selection)
            )
        if opLane.ImageToExport.ready():
            previewLayer = self.createStandardLayerFromSlot(opLane.ImageToExport)
            previewLayer.visible = False
            previewLayer.name = "{} - Preview".format(selection)
            previewLayer.set_normalize(0, None)
            layers.append(previewLayer)
    # If available, also show the raw data layer
    rawSlot = opLane.FormattedRawData
    if rawSlot.ready():
        rawLayer = self.createStandardLayerFromSlot(rawSlot)
        rawLayer.name = "Raw Data"
        rawLayer.visible = True
        rawLayer.opacity = 1.0
        layers.append(rawLayer)
    return layers