boolean (RunConfigurationBase configuration, Object listener, RunnerSettings runnerSettings) { return listener instanceof TestDiscoveryListener && (runnerSettings != null || !isApplicableFor(configuration)); }