ExecutionEnvironment (@NotNull final RunContentDescriptor descriptor) { for (final AnAction action : descriptor.getRestartActions()) { if (action instanceof PyRerunFailedTestsAction rerunFailedTestsAction) { return getReRunEnvironment(rerunFailedTestsAction); } } return null; }