void (final String path, final String name, final ImportPriority priority) { myFixture.configureByFile(getTestName(true) + ".py"); WriteCommandAction.runWriteCommandAction(myFixture.getProject(), () -> { AddImportHelper.addOrUpdateFromImportStatement(myFixture.getFile(), path, name, null, priority, null); }); myFixture.checkResultByFile(getTestName(true) + ".after.py"); }