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