void () { assertSameElements(getService().getAllModuleEncodings(myModule), getProjectDefault()); final VirtualFile file = createFile("A.java"); assertEquals(getProjectDefault(), file.getCharset()); assertSameElements(getService().getAllModuleEncodings(myModule), getProjectDefault()); EncodingProjectManager.getInstance(myProject).setEncoding(file, WINDOWS_1251); assertSameElements(getService().getAllModuleEncodings(myModule), projectDefaultPlus(WINDOWS_1251)); }