void (String fileName, EditorActionHandler handler, String afterFileName) { configureByFile(fileName); boolean enabled = handler.isEnabled(getEditor(), null, null); File file = new File(getTestDataPath(), afterFileName); if (!file.exists()) afterFileName = fileName; if (myBeforeMoveTask != null) { myBeforeMoveTask.run(); } if (enabled) { WriteCommandAction.runWriteCommandAction(null, () -> handler.execute(getEditor(), null, null)); } checkResultByFile(afterFileName); if (myAfterMoveTask != null) { myAfterMoveTask.run(); } }