IntelliJ: "Could not autowire. No beans of 'JiraAuthenticationContext' type found."

I’m developing a JIRA plugin. Using IntellIj 2016.3 I see the error message above, which is produced by IntelliJ’s inspections. This message appears for every service included with the @ComponentImport annotation.

The problem occurs in my plugin’s spring configuration:

@Configuration
public class PluginContextConfiguration {

  @Bean
  public MyInterface beanyMcBeanFace(@ComponentImport JiraAuthenticationContext jiraAuthenticationContext) {
       // Things are good here
  }

Building, running and integrating the plugin works perfectly fine using atlas-run, since all the services can be resolved in OSGi.

At the moment I’m using @SuppressWarnings("SpringJavaAutowiringInspection") for parameters/methods, to get rid of the messages. But I’d like to know if there is a more elegant solution.