boolean (@NotNull final Project project, @NotNull final PyTestCreationModel model) { final CreateTestDialog dialog = new CreateTestDialog(project, model); if (!dialog.showAndGet()) { return false; } dialog.copyToModel(); return true; }