PsiMember[] () { final Collection<MemberInfo> selectedMemberInfos = myTable.getSelectedMemberInfos(); ArrayList<PsiMember> list = new ArrayList<>(); for (MemberInfo selectedMemberInfo : selectedMemberInfos) { list.add(selectedMemberInfo.getMember()); } return list.toArray(PsiMember.EMPTY_ARRAY); }