public static Node insert ( Node root , int data ) {
  if ( root == null ) return new Node ( data ) ;
  if ( data < root . data ) root . left = insert ( root . left , data ) ;
  if ( data > root . data ) root . right = insert ( root . right , data ) ;
  return root ;
}

public static Node insert ( Node root , int data ) { if ( root == null ) return new Node ( data ) ; if ( data < root . data ) root . left = insert ( root . left , data ) ; if ( data > root . data ) root . right = insert ( root . right , data ) ; return root ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (return_statement (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))) consequence: (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))) consequence: (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (identifier)))))) (return_statement (identifier))))