(node instanceof IntendedRecipient && (((IntendedRecipient) node).getAddrs().isEmpty() || ((IntendedRecipient) node).getTelecoms().isEmpty())) || (node instanceof RelatedSubject && (((RelatedSubject) node).getAddrs().isEmpty() || ((RelatedSubject) node).getTelecoms().isEmpty())) || (node instanceof ParticipantRole && (((ParticipantRole) node).getAddrs().isEmpty() || ((ParticipantRole) node).getTelecoms().isEmpty()))) { hasErrors = true; if (diagnostics != null) {