Set<PluginId> (Object @NotNull ... implementationObjects) { Set<PluginId> myConflictingPluginIds = new HashSet<>(); for (Object object : implementationObjects) { final ClassLoader classLoader = object.getClass().getClassLoader(); if (classLoader instanceof PluginAwareClassLoader) { myConflictingPluginIds.add(((PluginAwareClassLoader)classLoader).getPluginId()); } else { myConflictingPluginIds.add(CORE_PLUGIN_ID); } } return myConflictingPluginIds; }