private void assertDiscardable() {
if (!(this.state instanceof State.Discardable)) {
throw new IllegalStateException("resetting would discard an active whitespace position;\n" + printDebuggingMessage("ATTEMPTED TO RESET HERE"));
}
}
@Test
void test() {
rewriteRun(
python(
"""
import time
while True:
time.sleep(5)
print "FooBar"
"""
)
);
}
Error is thrown here: