public PsiType @NotNull [] getTypes() {
      return myErrorMessage == null ? myInferredTypes.toArray(createArray(myInferredTypes.size())) : PsiType.EMPTY_ARRAY;
    }
public PsiType @NotNull [] getTypes()