void (MouseEvent e, PsiIdentifier fieldName) { List<PsiElement> relatedItems = new ArrayList<>(); PsiElement f = fieldName.getParent(); if (f instanceof PsiField) { collectTargets((PsiField)f, relatedItems, Functions.id(), false); } if (relatedItems.size() == 1) { NavigationUtil.activateFileWithPsiElement(relatedItems.get(0)); return; } final JBPopup popup = NavigationUtil .getPsiElementPopup(relatedItems.toArray(PsiElement.EMPTY_ARRAY), JavaFXBundle.message("popup.title.choose.component.with.fx.id", fieldName.getText())); popup.show(new RelativePoint(e)); }