Checks for redundant modifiers in interface and annotation definitions.