def METHOD_NAME(self, index: int) -> None:
    session, _, uri, position = self._unpack(index)
    if not session:
        return
    if uri.startswith(("file:", "res:")):
        flags = sublime.ENCODED_POSITION | sublime.FORCE_GROUP
        if self._side_by_side:
            if self._highlighted_view and self._highlighted_view.is_valid():
                # Replacing the MRU is done relative to the current highlighted sheet
                self._window.focus_view(self._highlighted_view)
                flags |= sublime.REPLACE_MRU | sublime.SEMI_TRANSIENT
            else:
                flags |= sublime.ADD_TO_SELECTION | sublime.SEMI_TRANSIENT
        else:
            flags |= sublime.TRANSIENT
        view = open_basic_file(session, uri, position, flags, self._window.active_group())
        # Don't overwrite self._highlighted_view if resource uri can't preview, so that side-by-side view will still
        # be closed upon canceling
        if view:
            self._highlighted_view = view
    else:
        # TODO: Preview for other uri schemes?
        debug("no preview for", uri)