Collection<PsiMember> (@NotNull PsiClass clazz) { PsiElementClassMember<?>[] memberElements = GenerateToStringActionHandlerImpl.buildMembersToShow(clazz); return Arrays.stream(memberElements) .<PsiMember>map(x -> x.getElement()) .sorted((o1, o2) -> compareMembers(o1, o2)) .toList(); }