code: public boolean intersects( Geometry geometry, boolean usePrepared ) {
          if (!getEnvelope().intersects(geometry.getEnvelopeInternal())) {
              return false;
          }
          if (usePrepared) {
              if (preparedGeometry == null) {
                  preparedGeometry = PreparedGeometryFactory.prepare(getGeometry());
              }
              return preparedGeometry.intersects(geometry);
          } else {
              return getGeometry().intersects(geometry);
          }
      }
docs: Check for intersection.
  
  @param geometry the geometry to check against.
  @param usePrepared use prepared geometry.
  @return true if the geometries intersect.