private static void close ( Closeable file ) {
  if ( file != null ) {
    try {
      file . close ( ) ;
    }
    catch ( IOException e ) {
      e . printStackTrace ( ) ;
    }
  }
}

private static void close ( Closeable file ) { if ( file != null ) { try { file . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (block (try_statement body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))))))))