class LegacyAutoConfigurationDetectListener implements AutoConfigurationImportListener,
                                                  BeanClassLoaderAware {

    private static final Logger LOGGER = SofaBootLoggerFactory
                                           .getLogger(LegacyAutoConfigurationDetectListener.class);

    private ClassLoader         beanClassLoader;

    @Override
    public void onAutoConfigurationImportEvent(AutoConfigurationImportEvent event) {<FILL_FUNCTION_BODY>}

    private StringBuilder builderWarnLog(Set<String> legacyConfigurations) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("These configurations defined in spring.factories file will be ignored:");
        stringBuilder.append("\n");
        legacyConfigurations.forEach(legacyConfiguration -> {
            stringBuilder.append("--- ");
            stringBuilder.append(legacyConfiguration);
            stringBuilder.append("\n");
        });
        return stringBuilder;
    }

    @Override
    public void setBeanClassLoader(ClassLoader classLoader) {
        this.beanClassLoader = classLoader;
    }
}

        // configurations form *.import file
        Set<String> importConfigurations = new HashSet<>();
        importConfigurations.addAll(event.getCandidateConfigurations());
        importConfigurations.addAll(event.getExclusions());

        // configurations from spring.factories file
        List<String> configurations = new ArrayList<>(
                SpringFactoriesLoader.loadFactoryNames(EnableAutoConfiguration.class, beanClassLoader));

        // configurations which in  spring.factories but not in *.import will be ignored.
        Set<String> legacyConfigurations = new HashSet<>();
        configurations.forEach(className -> {
            if (!importConfigurations.contains(className)) {
                legacyConfigurations.add(className);
            }
        });

        if (!legacyConfigurations.isEmpty()) {
            LOGGER.warn(builderWarnLog(legacyConfigurations).toString());
        }
    
<no_super_class>