private static CandidateInfo @NotNull [] selectCandidateChosenOnCompletion(@Nullable PsiElement call, CandidateInfo @NotNull [] candidates) {
      if (call instanceof PsiCall) {
        PsiCall originalCall = CompletionUtil.getOriginalElement((PsiCall)call);
        if (originalCall != null) {
          PsiMethod method = CompletionMemory.getChosenMethod(originalCall);
          if (method != null) {
            for (CandidateInfo candidate : candidates) {
              if (CompletionUtil.getOriginalOrSelf(candidate.getElement()) == method) return new CandidateInfo[]{candidate};
            }
          }
        }
      }
      return candidates;
    }
private static CandidateInfo @NotNull [] selectCandidateChosenOnCompletion(@Nullable PsiElement call, CandidateInfo @NotNull [] candidates)