public static BufferedReader toBufferedReader(Reader reader) {
        return reader instanceof BufferedReader ? (BufferedReader) reader : new BufferedReader(reader);
    }
Returns the given reader if it is a {@link BufferedReader}, otherwise creates a toBufferedReader for the given
reader.

@param reader the reader to wrap or return
@return the given reader or a new {@link BufferedReader} for the given reader
@since 2.2
pay-java-common/src/main/java/com/egzosn/pay/common/util/IOUtils.java