@NotNull
    @Override
    public SearchScope getLocalUseScope() {
        final XmlTag tag = getTag();
        if (!tag.isValid()) {
            return getDefaultUseScope();
        }
        final XsltTemplate template = getTemplate();
        if (template == null) {
            return getDefaultUseScope();
        }
        if (template.getName() == null) {
            return getDefaultUseScope();
        }
        final XmlFile file = (XmlFile)tag.getContainingFile();
        if (!XsltIncludeIndex.processBackwardDependencies(file, new CommonProcessors.FindFirstProcessor<>())) {
            // processor found something
            return getDefaultUseScope();
        }
        return new LocalSearchScope(file);
    }
@NotNull
    @Override
    public SearchScope getLocalUseScope()