title: @ConditionalOnProperty not reflected when viewing @Autowired beans in Intellij IDEA
body: <p>Let's say I have <code>@Configuration</code> class which registers bean of type <code>RestClient</code> conditionally using <code>@ConditionalOnProperty</code>.</p>
  
  <pre><code>@Configuration
  public class RestClientConfig {
  
      @Bean("restClient")
      @ConditionalOnProperty(prefix = "rest.client", name = "enabled", havingValue = "false", matchIfMissing = true)
      public RestClient restClient(RestProperties properties) {
          return new HttpRestClient(...);
      }
  
      @Bean("restClient")
      @ConditionalOnProperty(prefix = "rest.client", name = "enabled", havingValue = "true")
      public RestClient mockRestClient(RestProperties properties) {
          return new MockRestClient();
      }
  
  }
  </code></pre>
  
  <p>When I run this application, everything works. Implementation of given type is chosen correctly when I autowire <code>RestClient</code> in another bean.</p>
  
  <p>However, when I view this setup in Intellij IDEA, it reports:
  <a href="https://i.stack.imgur.com/ZPdjc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZPdjc.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to instruct Intellij to know about <code>@ConditionalOnProperty</code> or do it in different way in Spring Boot?</p>