docs: private static Shape getShapeWithId(String id,
                                          ArrayList<Shape> shapes) {
          Shape result = new Shape(id);
          if (shapes.contains(result)) {
              return shapes.get(shapes.indexOf(result));
          }
  
          shapes.add(result);
          return result;
      }