@Override
  public @Nullable PsiNamedElement getContainerElement(@NotNull PsiElement element) {
    Language language = element.getLanguage();
    RefManagerExtension<?> extension = myLanguageExtensions.get(language);
    if (extension == null) return null;
    return extension.getElementContainer(element);
  }
@Override
  public @Nullable PsiNamedElement getContainerElement(@NotNull PsiElement element)