void () { String noArtifact = getDependency("group", null, "1.0", "runtime", null); configureFromFileText("pom.xml", noArtifact); selectWholeFile(); performCut(); configureGradleFile(); int old = CodeInsightSettings.getInstance().REFORMAT_ON_PASTE; try { CodeInsightSettings.getInstance().REFORMAT_ON_PASTE = CodeInsightSettings.NO_REFORMAT; performPaste(); checkResultByText(null, """ dependencies { <dependency> <groupId>group</groupId> <version>1.0</version> <scope>runtime</scope> </dependency> }""", true); } finally { CodeInsightSettings.getInstance().REFORMAT_ON_PASTE = old; } }