void (@NotNull Class<? extends ModuleFixtureBuilder<?>> aClass, @NotNull String implClassName) { try { @SuppressWarnings("unchecked") Class<? extends ModuleFixtureBuilder<?>> implClass = (Class<? extends ModuleFixtureBuilder<?>>)Class.forName(implClassName); assertTrue(aClass.isAssignableFrom(implClass)); myFixtureBuilderProviders.put(aClass, implClass); } catch (ClassNotFoundException e) { throw new RuntimeException("Cannot instantiate fixture builder implementation", e); } }