public function addPath($path, $prepend = false)
{
foreach ($this->lookup as $p) {
if ($p === $path) {
return;
}
}
if ($prepend) {
$this->synchronized(function ($path) {
$entries = $this->getAndRemoveLookupEntries();
$this->lookup[] = $path;
foreach ($entries as $entry) {
$this->lookup[] = $entry;
}
}, $path);
} else {
$this->lookup[] = $path;
}
}