List<PsiSymbolReferenceProviderBean> (@NotNull Class<?> key) { List<PsiSymbolReferenceProviderBean> result = new SmartList<>(); for (PsiSymbolReferenceProviderBean bean : myBeans) { if (bean.getHostElementClass().isAssignableFrom(key)) { result.add(bean); } } return result; }