question: public List < JCAnnotation > transformAnnotations ( OutputElement target , Tree . Declaration annotated ) { EnumSet < OutputElement > outputs ; if ( annotated instanceof Tree . AnyClass ) { outputs = AnnotationUtil . outputs ( ( Tree . AnyClass ) annotated ) ; } else if ( annotated instanceof Tree . AnyInterface ) { outputs = AnnotationUtil . outputs ( ( Tree . AnyInterface ) annotated ) ; } else if ( annotated instanceof Tree . TypeAliasDeclaration ) { outputs = AnnotationUtil . outputs ( ( Tree . TypeAliasDeclaration ) annotated ) ; } else if ( annotated instanceof Tree . Constructor ) { outputs = AnnotationUtil . outputs ( ( Tree . Constructor ) annotated ) ; } else if ( annotated instanceof Tree . Enumerated ) { outputs = AnnotationUtil . outputs ( ( Tree . Enumerated ) annotated ) ; } else if ( annotated instanceof Tree . AnyMethod ) { outputs = AnnotationUtil . outputs ( ( Tree . AnyMethod ) annotated ) ; } else if ( annotated instanceof Tree . AttributeDeclaration ) { outputs = AnnotationUtil . outputs ( ( Tree . AttributeDeclaration ) annotated ) ; } else if ( annotated instanceof Tree . AttributeGetterDefinition ) { outputs = AnnotationUtil . outputs ( ( Tree . AttributeGetterDefinition ) annotated ) ; } else if ( annotated instanceof Tree . AttributeSetterDefinition ) { outputs = AnnotationUtil . outputs ( ( Tree . AttributeSetterDefinition ) annotated ) ; } else if ( annotated instanceof Tree . ObjectDefinition ) { outputs = AnnotationUtil . outputs ( ( Tree . ObjectDefinition ) annotated ) ; } else { throw BugException . unhandledNodeCase ( annotated ) ; } return transform ( annotated . getDeclarationModel ( ) , target , annotated . getAnnotationList ( ) , outputs ) ; }
target:  Transform the annotations on the given annotated declaration for  inclusion on the given target element type 