static boolean doOverlap ( Point l1 , Point r1 , Point l2 , Point r2 ) {
  if ( l1 . x >= r2 . x || l2 . x >= r1 . x ) {
    return false ;
  }
  if ( l1 . y <= r2 . y || l2 . y <= r1 . y ) {
    return false ;
  }
  return true ;
}

static boolean doOverlap ( Point l1 , Point r1 , Point l2 , Point r2 ) { if ( l1 . x >= r2 . x || l2 . x >= r1 . x ) { return false ; } if ( l1 . y <= r2 . y || l2 . y <= r1 . y ) { return false ; } return true ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (field_access object: (identifier) field: (identifier))) right: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (field_access object: (identifier) field: (identifier))))) consequence: (block (return_statement (false)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (field_access object: (identifier) field: (identifier))) right: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (field_access object: (identifier) field: (identifier))))) consequence: (block (return_statement (false)))) (return_statement (true))))