void (@NotNull ModuleType type, boolean classpathProvider) { for (ModuleType<?> oldType : myModuleTypes.keySet()) { if (oldType.getId().equals(type.getId())) { PluginException.logPluginError(LOG, "Trying to register a module type that clashes with existing one. Old=" + oldType + ", new = " + type, null, type.getClass()); return; } } myModuleTypes.put(type, classpathProvider); }