def METHOD_NAME(self) -> "QUrl":
    plugin_path = PluginRegistry.getInstance().getPluginPath(self.getPluginId())
    if plugin_path is None:
        Logger.error(f"Cannot create QML view: cannot find plugin path for plugin {self.getPluginId()}")
        return QUrl("")
    path = os.path.join(plugin_path, self._qml_url)
    return QUrl.fromLocalFile(path)