code: public static Polygon makePolygon(Geometry shell) throws IllegalArgumentException {
          if(shell == null) {
              return null;
          }
          LinearRing outerLine = checkLineString(shell);
          return shell.getFactory().createPolygon(outerLine, null);
      }
docs: Creates a Polygon formed by the given shell.
  
  @param shell
  @return