private static GradleTargetVerifier getGradleTargetVerifier(
NbGradleProject project,
Lookup actionContext,
CustomCommandActions customActions) {
ContextAwareGradleTargetVerifier contextAwareVerifier
= customActions.getContextAwareGradleTargetVerifier();
final GradleTargetVerifier verifier1 = contextAwareVerifier != null
? contextAwareVerifier.startCommand(project, actionContext)
: null;
final GradleTargetVerifier verifier2 = customActions.getGradleTargetVerifier();
if (verifier1 == null) return verifier2;
if (verifier2 == null) return verifier1;