Generally, one should use the declaration builder instead of trying to do it manually which is more error prone and verbose.