void (@NotNull ExtensionsAreaImpl area, boolean useWhiteList, @NotNull Map<ExtensionPointImpl<?>, Collection<WeakReference<Object>>> extensions) { area.processExtensionPoints(ep -> { if (!ep.isDynamic() || (useWhiteList && !EXTENSION_POINTS_WHITE_LIST.contains(ep.name))) { return Unit.INSTANCE; } List<WeakReference<Object>> list = new ArrayList<>(); ep.processUnsortedWithPluginDescriptor((object, pluginDescriptor) -> { if (!PluginManagerCore.CORE_ID.equals(pluginDescriptor.getPluginId())) { list.add(new WeakReference<>(object)); } return Unit.INSTANCE; }); extensions.put(ep, list); return Unit.INSTANCE; }); }