Collection<PsiNamedElement> () { if (myNamedElements == null) { collectDeclarations(); } final List<PsiNamedElement> results = new ArrayList<>(); for (Collection<PsiNamedElement> elements : myNamedElements.values()) { results.addAll(elements); } return results; }