void (String file, String pluginName) { AddGradleDslPluginAction.TEST_THREAD_LOCAL.set(pluginName); WriteCommandAction.runWriteCommandAction(getProject(), () -> CodeInsightTestUtil.doActionTest(new AddGradleDslPluginAction(), file, myFixture)); }