code: @Override
      public void checkListUsage(final Statement statement,
              final Document document)
              throws SemanticWarning {
          Object object = statement.getObject();
  
          if (object != null && !statement.hasNestedStatement() &&
                  object.getTerm().getFunctionEnum() == FunctionEnum.LIST &&
                  !statement.getRelationshipType().isListable()) {
  
              if (document != null) {
                  pruneStatement(statement, document);
              }
  
              final String err = SEMANTIC_LIST_IMPROPER_CONTEXT;
              final String name = statement.toBELShortForm();
              throw new SemanticWarning(name, err, null);
          }
      }
docs: {@inheritDoc}