Result<PsiReference[]> () { final PsiReference[] referencesImpl = getReferencesImpl(myAttribute); final Object[] refs = new PsiElement[referencesImpl.length]; for (int i = 0; i < refs.length; i++) { refs[i] = referencesImpl[i].getElement(); } return new Result<>(referencesImpl, ArrayUtil.append(refs, myAttribute.getValueElement())); }