public function isPathIncluded($path, $type)
{
// check if it's in cache
if (isset($this->includePathsCache[$type][$path]) === true) {
return $this->includePathsCache[$type][$path];
}
$includePaths = $this->getIncludePathsByType($type);
$result = $this->hasExactPathMatch($includePaths, $path) === true || $this->hasMatchWithIncludedPaths($includePaths, $path) === true;
$this->includePathsCache[$type][$path] = $result;
return $result;
}