get declaration method (without arguments) in methoddeclaration class