code: @Deprecated
      public static <T> T withCloseable(Closeable self, @ClosureParams(value = SimpleType.class, options = "java.io.Closeable") Closure<T> action) throws IOException {
          return IOGroovyMethods.withCloseable(self, action);
      }
docs: #deprecated use the variant in IOGroovyMethods
  
  @see org.codehaus.groovy.runtime.IOGroovyMethods#withCloseable(java.io.Closeable, groovy.lang.Closure)
  @since 2.3.0