public function isInWorkspace($workspaceNames) { if ($this->node === null) { return true; } return in_array($this->node->getWorkspace()->getName(), $workspaceNames); }