void () { myIsReset = true; try { List<CodeStyleScheme> schemes = new ArrayList<>(myModel.getAllSortedSchemes()); resetSchemes(schemes); selectScheme(myModel.getSelectedScheme()); } finally { myIsReset = false; } }