boolean (VirtualFile file) { try { if (file.getName().equals("cyr1.txt")) { //noinspection NonAsciiCharacters file.rename(ApplyPatchTest.class, "имя файла.txt"); } if (file.getName().equals("cyr2.txt")) { //noinspection NonAsciiCharacters file.rename(ApplyPatchTest.class, "кириллица.txt"); } return true; } catch (IOException e) { throw new RuntimeException(e); } }