PsiMethodCallExpression (@NotNull PsiMethodCallExpression call) { PsiMethodCallExpression furtherCall = call; do { furtherCall = findSubsequentCall(furtherCall, o -> CALLS_MAKING_SORT_USELESS.contains(o) || CALLS_MAKING_SORT_USELESS_PARALLEL.containsKey(o), UNORDERED_COLLECTOR, CALLS_KEEPING_SORT_ORDER::contains); } while (furtherCall != null && "sorted".equals(furtherCall.getMethodExpression().getReferenceName()) && !sortingCancelsPreviousSorting(call, furtherCall)); return furtherCall; }