public ExpectedTypeInfo @NotNull [] getResult() {
      if (myResult.size() > myMaxCandidates) {
        return myResult.subList(0, myMaxCandidates).toArray(ExpectedTypeInfo.EMPTY_ARRAY);
      }
      return myResult.toArray(ExpectedTypeInfo.EMPTY_ARRAY);
    }
public ExpectedTypeInfo @NotNull [] getResult()