docs: private void appendInCriteria(TableAlias alias, PathInfo pathInfo, InCriteria c, StringBuffer buf)
      {
          appendColName(alias, pathInfo, c.isTranslateAttribute(), buf);
          buf.append(c.getClause());
  
          if (c.getValue() instanceof Collection)
          {
              Object[] values = ((Collection) c.getValue()).toArray();
              int size = ((Collection) c.getValue()).size();
  
              buf.append("(");
              if (size > 0)
              {
                  for (int i = 0; i < size - 1; i++)
                  {
                      appendParameter(values[i], buf);
                      buf.append(",");
                  }
                  appendParameter(values[size - 1], buf);
              }
              buf.append(")");
          }
          else
          {
              appendParameter(c.getValue(), buf);
          }
      }