get declaration method simplified in methoddeclaration class