MyInfo[] (@NotNull PsiFile file) { final WebReference[] references = collectWebReferences(file); final MyInfo[] infos = new MyInfo[references.length]; for (int i = 0; i < infos.length; i++) { final WebReference reference = references[i]; infos[i] = new MyInfo(PsiAnchor.create(reference.getElement()), reference.getRangeInElement(), reference.getValue()); } return infos; }