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