declaring methods in Java Snippet

Hello,

can anybody tell me if it´s possible to declare (and call) self-written methods (such as public void method (Type input) { ... } ) inner the Java Snippet node?

thanks in advance!

The header part is designed for declaration, the expression is suitable for calling.