void (@NotNull DocStringFormat format, @NotNull Runnable runnable) { final PyDocumentationSettings settings = PyDocumentationSettings.getInstance(myFixture.getModule()); final DocStringFormat oldFormat = settings.getFormat(); settings.setFormat(format); try { runnable.run(); } finally { settings.setFormat(oldFormat); } }