PsiReference[] (final PsiMultiReference multiReference) { final PsiReference[] references = multiReference.getReferences(); final List<PsiReference> hard = ContainerUtil.findAll(references, object -> !object.isSoft()); if (!hard.isEmpty()) { return hard.toArray(PsiReference.EMPTY_ARRAY); } return references; }