I have an abstract configuration class **Abs** that is implemented by **Impl**

**Abs** has a bean **ImportantBean**

We import a **Imprt** config. class to **Impl** and I need to use the **ImportantBean** in **Imprt**

How can I do that? 

IntelliJ says it cannot be autowired

something like:

```
@Configuration 
@Import(Imprt.class)
public class Impl extends Abs {}

@Configuration
public abstract class Abs{
  @Bean
  public ImportantBean importantBean(){
  return new ImportantBean();}
}

@Configuration
public class Imprt{
  @Autowired
  private ImportantBean importantBean;
}

```