return getInstance(EnumSet.of(Objects.requireNonNull(option)));
}
public static StackWalker getInstance(Set<Option> options) {
if (options.isEmpty()) {
return DEFAULT_WALKER;
<BUG>}
checkPermission(options);

return new StackWalker(toEnumSet(options));
</BUG>
}

return getInstance(EnumSet.of(Objects.requireNonNull(option)));
}
public static StackWalker getInstance(Set<Option> options) {
if (options.isEmpty()) {
return DEFAULT_WALKER;
}
EnumSet<Option> optionSet = toEnumSet(options);
checkPermission(optionSet);
return new StackWalker(optionSet);
}
