private static @Nullable PsiMetaOwner retrieveOwner(final @Nullable XmlTag tag,
                                                      final @Nullable XmlFile file,
                                                      final @Nullable String namespace) {
    if (file == null) {
      return namespace != null && namespace.equals(XmlUtil.getTargetSchemaNsFromTag(tag)) ? tag : null;
    }
    return AstLoadingFilter.forceAllowTreeLoading(file, file::getDocument);
  }
private static @Nullable PsiMetaOwner retrieveOwner(final @Nullable XmlTag tag,
                                                      final @Nullable XmlFile file,
                                                      final @Nullable String namespace)