private static boolean hasFileOrPointerReferences(PsiReference[] references) {
    for (PsiReference reference : references) {
      if (reference instanceof PsiFileReference
          || reference instanceof JsonPointerReferenceProvider.JsonSchemaIdReference
          || reference instanceof JsonPointerReferenceProvider.JsonPointerReference) return true;
    }
    return false;
  }
private static boolean hasFileOrPointerReferences(PsiReference[] references)