code: private void actualInitReflections() {
          ConfigurationBuilder configurationBuilder = configurationBuilder()
                  .setScanners(getScanners())
                  .setMetadataAdapter(new MetadataAdapterInMemory());
  
          InMemoryFactory factory = new InMemoryFactory();
          for (ClasspathAbstractContainer<?> i : this.classpath.entries())
          {
              String name = i.name();
              try
              {
                  configurationBuilder.addUrls(factory.createInMemoryResource(name));
              }
              catch (MalformedURLException e)
              {
                  throw new KernelException("Malformed URL Exception", e);
              }
          }
          urls.addAll(configurationBuilder.getUrls());
          reflections = new Reflections(configurationBuilder);
      }
docs: Its too soon to create reflections in the constructor