void (@NotNull CompilerFactory factory, @NotNull PluginDescriptor pluginDescriptor) { List<Compiler> compilersToRemove = new ArrayList<>(); String factoryId = getFactoryId(factory); for (Map.Entry<Compiler, String> entry : myCompilers.entrySet()) { if (factoryId.equals(entry.getValue())) { compilersToRemove.add(entry.getKey()); } } for (Compiler compiler : compilersToRemove) { removeCompiler(compiler); } }