List<StubFieldAccessor> () { List<StubFieldAccessor> result = new ArrayList<>(); List<String> debugStr = new ArrayList<>(); StubElementTypeHolderEP.EP_NAME.processWithPluginDescriptor((bean, pluginDescriptor) -> { int accessorCount = bean.initializeOptimized(pluginDescriptor, result); debugStr.add(accessorCount + " in " + bean.holderClass); return Unit.INSTANCE; }); Logger.getInstance(IStubElementType.class).debug("Lazy stub element types loaded: " + StringUtil.join(debugStr, ", ")); Set<String> lazyIds = new HashSet<>(result.size()); for (StubFieldAccessor accessor : result) { lazyIds.add(accessor.externalId); } lazyExternalIds = Collections.unmodifiableSet(lazyIds); return result; }