docs: public static boolean isOnSameLine(Area a1, Area a2, int threshold)
      {
          final Rectangular gp1 = a1.getBounds();
          final Rectangular gp2 = a2.getBounds();
          return (Math.abs(gp1.getY1() - gp2.getY1()) <= threshold 
                  && Math.abs(gp1.getY2() - gp2.getY2()) <= threshold); 
      }