I have tolerated this for a while since it is quite harmless, but I think it is worth asking a question. Why are all annotated Spring components marked red in IDEA 9? Any Spring annotation, such as @Component, @Controller, @Autowired, cause red bars to appear in the code inspection status gutter on the right of the editor. They, obviously, do not indicate errors, and the overall status of the class remains green. When I move the cursor over one of those, it simply displays a tool tip: "Spring Bean". That seems completely redundant because IDEA already displays nice green Spring icons on the left side of all those definitions making any Spring wirings obvious. If I click on the red mark, it navigates me to the annotated artifact (class, property, or method.) I have Spring Model inspections enabled, and explicitly allow autowirings (marking them as Info), and I usually have auto-scanning for Spring components enabled in my applications. I repeat, there are no violations of the Spring model anywhere, all the components are properly configured, and all the necessary dependencies are present, which IDEA does a great job validating. But why the red markings that don't have anything to do with any errors?
I thought, perhaps, there was something in my configuration that I could edit, but IDEA does not give me any options to edit any settings when I select the annotated artifact. At first, it seemed like a very obvious bug - in the first EAP builds, but since this "feature" has made it into the final release, I am wondering: what's up with that? What's the idea? If this is an intended "feature", how can I disable it or change the color from red to something less alarming?