code: private boolean isCollectionAttribute(PluralAttribute<? super X, ?, ?> attribute)
      {
          return attribute != null && attribute.getCollectionType().equals(CollectionType.COLLECTION);
      }
docs: Checks if is collection attribute.
  
  @param attribute
  the attribute
  @return true, if is collection attribute