void (final VirtualFile rootDir, String fileName, String key, String newName) { VirtualFile child = rootDir.findChild(fileName); PropertiesFile file = (PropertiesFile)myPsiManager.findFile(child); Property property = (Property)file.findPropertyByKey(key); new RenameProcessor(myProject, property, newName, true, true).run(); PsiDocumentManager.getInstance(myProject).commitAllDocuments(); FileDocumentManager.getInstance().saveAllDocuments(); }