ByHostClass (@NotNull Class<?> hostClass) { List<XmlNamedReferenceProviderBean> result = new SmartList<>(); for (XmlNamedReferenceProviderBean bean : EP_NAME.getExtensionList()) { if (bean.getHostElementClass().isAssignableFrom(hostClass)) { result.add(bean); } } return new ByHostClass(result); }