code: public Statement transform(TryCatchStatement tryCatchStatement) {
          if (!asBoolean(tryCatchStatement.getResourceStatements())) {
              return tryCatchStatement;
          }
  
          if (this.isBasicTryWithResourcesStatement(tryCatchStatement)) {
              return this.transformBasicTryWithResourcesStatement(tryCatchStatement);
          } else {
              return this.transformExtendedTryWithResourcesStatement(tryCatchStatement);
          }
      }
docs: Reference JLS "14.20.3. try-with-resources"(https://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html)
  
  @param tryCatchStatement the try-with-resources statement to transform
  @return try-catch-finally statement, which contains no resources clause