@Override
    public @Nullable PsiElement resolve() {
      Project project = getElement().getProject();
      GlobalSearchScope searchScope = PsiManager.getInstance(project).isInProject(getElement()) ?
                                      GlobalSearchScopesCore.projectProductionScope(project) :
                                      PluginRelatedLocatorsUtils.getCandidatesScope(project);

      UInjectionHost injectionHost = UastContextKt.toUElement(getElement(), UInjectionHost.class);
      if (injectionHost == null) return null;

      ExtensionPoint resolved = ExtensionPointIndex.findExtensionPoint(project, searchScope, injectionHost.evaluateToString());
      return resolved != null ? resolved.getXmlTag() : null;
    }
@Override
    public @Nullable PsiElement resolve()