docs: public static boolean isNeighbor(Area a1, Area a2)
      {
          if (isOnSameLine(a1, a2))
              return true; //on the same line
          else
          {
              //the Y difference is less than half the line height
              int dy = a2.getBounds().getY1() - a1.getBounds().getY2();
              if (dy < 0)
                  dy = a1.getBounds().getY1() - a2.getBounds().getY2();
              return dy < a1.getBounds().getHeight() / 2;
          }
      }