PsiDynaReference<PsiElement> (@NotNull PsiElement element, @NotNull TextRange textRange, PsiReference... psiReference) { final PsiDynaReference<PsiElement> dynaReference = new PsiDynaReference<>(element); dynaReference.setRangeInElement(textRange); for (PsiReference reference : psiReference) { dynaReference.addReference(reference); } return dynaReference; }