WrapType (int wrap) { return switch (wrap) { case CommonCodeStyleSettings.WRAP_ALWAYS -> WrapType.ALWAYS; case CommonCodeStyleSettings.WRAP_AS_NEEDED -> WrapType.NORMAL; case CommonCodeStyleSettings.DO_NOT_WRAP -> WrapType.NONE; default -> WrapType.CHOP_DOWN_IF_LONG; }; }