Custom section in logs

Hi,

I am implementing a custom library method:

vars/someAction.groovy

def call() {
     echo "it works!"
}

It shows section only for echo step in logs.

How can I wrap whole method execution into a custom section so it shows similar to other pipeline steps with a (hide) button?