import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.sonar.api.rule.RuleKey;</BUG>
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RuleFinder;
<BUG>import org.sonar.api.rules.RuleQuery;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;</BUG>
public class RuleFinderCompatibility implements RuleFinder {

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.sonar.api.batch.rule.Rules;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RuleFinder;
import org.sonar.api.rules.RuleQuery;
import static org.sonar.core.util.stream.Collectors.toList;
public class RuleFinderCompatibility implements RuleFinder {
