boolean (@NotNull String varName, @NotNull MatchOptions matchOptions) { if (Configuration.CONTEXT_VAR_NAME.equals(varName)) { // Complete Match is default target for (String name : matchOptions.getVariableConstraintNames()) { if (!name.equals(Configuration.CONTEXT_VAR_NAME)) { if (matchOptions.getVariableConstraint(name).isPartOfSearchResults()) { return false; } } } return true; } final MatchVariableConstraint constraint = matchOptions.getVariableConstraint(varName); if (constraint == null) { return false; } return constraint.isPartOfSearchResults(); }