void (Runnable block) { boolean old = ourAutomaticallyCalculatePresentationInTests; ourAutomaticallyCalculatePresentationInTests = false; try { block.run(); } finally { ourAutomaticallyCalculatePresentationInTests = old; } }