docs: boolean canCastToTypeAndMatchesConstraints( JcrSession session,
                                                  JcrPropertyDefinition propertyDefinition,
                                                  Value[] values ) {
          for (Value value : values) {
              if (!canCastToTypeAndMatchesConstraints(session, propertyDefinition, value)) return false;
          }
          return true;
      }