void (final TestAction testAction) { final PsiFile baseFile = myFixture.configureByFile(getTestName(true) + "/p.properties"); final PsiFile translationFile = myFixture.configureByFile(getTestName(true) + "/p_en.properties"); final PropertiesFile basePropertiesFile = PropertiesImplUtil.getPropertiesFile(baseFile); assertNotNull(basePropertiesFile); final ResourceBundle bundle = basePropertiesFile.getResourceBundle(); final ResourceBundlePropertiesUpdateManager manager = new ResourceBundlePropertiesUpdateManager(bundle); assertInstanceOf(manager, ResourceBundlePropertiesUpdateManager.class); WriteCommandAction.runWriteCommandAction(getProject(), () -> testAction.doTestAction(basePropertiesFile, PropertiesImplUtil.getPropertiesFile(translationFile), manager)); myFixture.checkResultByFile(getTestName(true) + "/p.properties", getTestName(true) + "/p-after.properties", true); myFixture.checkResultByFile(getTestName(true) + "/p_en.properties", getTestName(true) + "/p-after_en.properties",true); }