public static ExpectedTypeInfo @NotNull [] getExpectedTypes(final CompletionParameters parameters) {
    return getExpectedTypes(parameters.getPosition(), parameters.getCompletionType() == CompletionType.SMART);
  }
public static ExpectedTypeInfo @NotNull [] getExpectedTypes(final CompletionParameters parameters)