void (final String controllerName, final String defaultVisibility) { JavaCodeStyleSettings settings = JavaCodeStyleSettings.getInstance(getProject()); settings.VISIBILITY = defaultVisibility; doTest(controllerName); }