CodeStyleScheme () { return new CodeStyleScheme() { private final CodeStyleSettings mySettings = CodeStyle.createTestSettings(); @NotNull @Override public String getName() { return "Test"; } @Override public boolean isDefault() { return false; } @NotNull @Override public CodeStyleSettings getCodeStyleSettings() { return mySettings; } }; }