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