boolean (@NotNull PluginClassLoader loader) { if (myMap == null) { List<IdeaPluginDescriptorImpl> plugins = PluginManagerCore.INSTANCE.getPluginSet().getEnabledModules(); int count = 0; myMap = new Object2IntOpenHashMap<>(plugins.size()); for (IdeaPluginDescriptor descriptor : plugins) { myMap.put(descriptor.getClassLoader(), count++); } } int index = myMap.applyAsInt(loader); boolean result = myMaxIndex < index; if (result) { myMaxIndex = index; } return result; }