void () { String fontName1 = FontPreferencesTest.getExistingNonDefaultFontName(); String fontName2 = FontPreferencesTest.getAnotherExistingNonDefaultFontName(); myScheme.setEditorFontName(fontName1); myScheme.setEditorFontSize(25); myScheme.setConsoleFontName(fontName2); myScheme.setConsoleFontSize(21); FontPreferencesTest.checkState(myScheme.getFontPreferences(), Collections.singletonList(fontName1), Collections.singletonList(fontName1), fontName1, fontName1, 25); assertEquals(fontName1, myScheme.getEditorFontName()); assertEquals(25, myScheme.getEditorFontSize()); FontPreferencesTest.checkState(myScheme.getConsoleFontPreferences(), Collections.singletonList(fontName2), Collections.singletonList(fontName2), fontName2, fontName2, 21); assertEquals(fontName2, myScheme.getConsoleFontName()); assertEquals(21, myScheme.getConsoleFontSize()); }