void () { getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().CATCH_ON_NEW_LINE = false; getSettings().SPACE_AROUND_BITWISE_OPERATORS = true; doMethodTest("try { } catch (E1|E2 e) { }", "try {} catch (E1 | E2 e) {}"); getSettings().SPACE_AROUND_BITWISE_OPERATORS = false; doMethodTest("try { } catch (E1 | E2 e) { }", "try {} catch (E1|E2 e) {}"); }