if (patterns != null) {
if (rules != null) {
    public void execute() throws MojoExecutionException {        if (!((rulesFile == null || !rulesFile.exists()) ^ (rules == null)))            throw new MojoExecutionException("Exactly one of rules or rulesFile is required");        try {            List patterns = null;            if (patterns != null) {                patterns = RulesFileParser.parse(rules);            } else {                patterns = RulesFileParser.parse(rulesFile);            }            JarProcessor proc = new MainProcessor(patterns, verbose);            StandaloneJarProcessor.run(fromJar, toJar, proc);        } catch (IOException e) {            throw new MojoExecutionException(e.getMessage(), e);        }    }