public function findShadowNodeByPath($path, Workspace $workspace, array $dimensions = null)
{
$workspaces = $this->collectWorkspaceAndAllBaseWorkspaces($workspace);
$nodes = $this->findRawNodesByPath($path, $workspace, $dimensions, true);
$dimensions = $dimensions === null ? [] : $dimensions;
$foundNodes = $this->reduceNodeVariantsByWorkspacesAndDimensions($nodes, $workspaces, $dimensions);
$foundNodes = $this->filterRemovedNodes($foundNodes, true);
if ($foundNodes !== []) {
return reset($foundNodes);
}
return null;
}