PsiMethodMember[] (PsiMethodMember[] allElements, PsiMethodMember[] onlyPrimaryElements, NotNullLazyValue<PsiMethodWithOverridingPercentMember[]> lazyElementsWithPercent, boolean merge, boolean toImplement, boolean sortByOverriding) { final boolean showElementsWithPercents = sortByOverriding && !toImplement; final PsiMethodMember[] defaultElements = toImplement || merge ? allElements : onlyPrimaryElements; return showElementsWithPercents ? lazyElementsWithPercent.getValue() : defaultElements; }