class IndexManagerFactory {

    public static ObjectIndexer<? extends SearchDocument> getIndexManager(final IndexEvent event) {
        if (Config.isUnitTestsEnabled()) {
            return new ObjectIndexer<DummyDocument>() {
                @Override
                public String[] getSearchFields() { return new String[0]; }
                @Override
                public void add(final DummyDocument object) { }
                @Override
                public void update(final DummyDocument object) { }
                @Override
                public void remove(final DummyDocument object) { }
                @Override
                public void commit() { }
                @Override
                public void reindex() { }
            };
        }
        if (event.getDocument() instanceof ProjectDocument || Project.class == event.getIndexableClass()) {
            return ProjectIndexer.getInstance();
        } else if (event.getDocument() instanceof ComponentDocument || Component.class == event.getIndexableClass()) {
            return ComponentIndexer.getInstance();
        } else if (event.getDocument() instanceof ServiceComponentDocument || ServiceComponent.class == event.getIndexableClass()) {
            return ServiceComponentIndexer.getInstance();
        } else if (event.getDocument() instanceof VulnerabilityDocument || Vulnerability.class == event.getIndexableClass()) {
            return VulnerabilityIndexer.getInstance();
        } else if (event.getDocument() instanceof LicenseDocument || License.class == event.getIndexableClass()) {
            return LicenseIndexer.getInstance();
        } else if (event.getDocument() instanceof VulnerableSoftwareDocument || VulnerableSoftware.class == event.getIndexableClass()) {
            return VulnerableSoftwareIndexer.getInstance();
        }
        throw new IllegalArgumentException("Unsupported indexer requested");
    }

    public static IndexManager getIndexManager(final Class<?> clazz) {<FILL_FUNCTION_BODY>}

}

        if (Project.class == clazz) {
            return ProjectIndexer.getInstance();
        } else if (Component.class == clazz) {
            return ComponentIndexer.getInstance();
        } else if (ServiceComponent.class == clazz) {
            return ServiceComponentIndexer.getInstance();
        } else if (Vulnerability.class == clazz) {
            return VulnerabilityIndexer.getInstance();
        } else if (License.class == clazz) {
            return LicenseIndexer.getInstance();
        } else if (VulnerableSoftware.class == clazz) {
            return VulnerableSoftwareIndexer.getInstance();
        }
        throw new IllegalArgumentException("Unsupported indexer requested");
    
<no_super_class>