List<PyElement> () { final Collection<PyModuleMemberInfo> selectedMembers = myMemberSelectionTable.getSelectedMemberInfos(); final List<PyElement> selectedElements = ContainerUtil.map(selectedMembers, MemberInfoBase::getMember); return ContainerUtil.sorted(selectedElements, (e1, e2) -> PyPsiUtils.isBefore(e1, e2) ? -1 : 1); }