Read attrs from @Parameter annotation in ImageJ plugin

In ImageJ plugin, I have a variable with @Parameter annotation like below

@Parameter( label = "Output image", type = ItemIO.OUTPUT, attrs = {@Attr(name="fileExt",value="tiff")} )

I could get the label, type using ModuleItem getName getType methods, but I have no idea how to read attrs…

The reason I added attrs to the annotation is that the plugin can produce outputs in either txt or tiff format, I want to store output file extension somewhere so later I could use it. Is this the best place to store it?

Any pointers are appreciated thanks very much