package sample.java.project;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.ParameterException;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Setter;

/**
 * The main class of the application. It contains the main() method,
 * the first method called.
 */
@NoArgsConstructor
@AllArgsConstructor
public class SampleJavaProject implements Runnable {

    /** The delay between printed messages. */
    private static final long PRINT_DELAY = 1000L;

    /** The name to be printed in the output message. */
    @Getter @Setter @NonNull
    @Parameter(names = "--name", description = "set the user's name",
               required = true)
    private String name = "world";

    /** Command line parameter for --loop. */
    @Parameter(names = "--loop", description = "print endlessly, hotswap demo")
    private boolean loop = false;

    /** Command line parameter for --help. */
    @Parameter(names = { "-h", "--help" }, description = "print help message")
    private boolean help = false;

    /**
     * Print the "Hello, world!" string.
     * @param args application input arguments
     */
    public static void main(final String[] args) {
        /* Parse command line arguments. */
        SampleJavaProject sjp = new SampleJavaProject();
        try {
            JCommander jc = new JCommander(sjp, args);
            if (sjp.help) {
                jc.usage();
                return;
            }
        } catch (ParameterException e) {
            System.err.println("error: " + e.getMessage());
            new JCommander(new SampleJavaProject()).usage();
            System.exit(-1);
        }

        sjp.run();
    }

    /**
     * Print the "Hello, world!" string.
     */
    public final void sayHello() {
        System.out.printf("Hello, %s!%n", name);
        printThis();
    }

    public static void printThis(){

       int zero=0;
        if(zero==1){System.println("zero")}
        else if(zero==1){System.out.println("zero");}
        else if(zero==2){System.out.println("zero");}
        else if(zero==3){System.out.println("zero");}
        else if(zero==4){System.out.println("zero");}
        else if(zero==5){System.out.println("zero");}
        else if(zero==6){System.out.println("zero");}
        else if(zero==7){System.out.println("zero");}
        else if(zero==8){System.out.println("zero");}
        else if(zero==9){System.out.println("zero");}
        else if(zero==10){System.out.println("zero");}
        else if(zero==11){System.out.println("zero");}
        else if(zero==12){System.out.println("zero");}
        else if(zero==13){System.out.println("zero");}
        else if(zero==14){System.out.println("zero");}
        else if(zero==15){System.out.println("zero");}
        else {System.out.println("fail");}

    }

    @Override
    public final void run() {
        do {
            sayHello();
            try {
                Thread.sleep(PRINT_DELAY);
            } catch (InterruptedException e) {
                return;
            }
        } while (loop);
    }
}

@@ -1932,24 +1932,45 @@
 rintThis();%0A
+        printThat();%0A
     %7D%0A%0A    p
@@ -2927,24 +2927,992 @@
 );%7D%0A%0A    %7D%0A%0A
+    public static void printThat()%7B%0A%0A       int zero=10;%0A        if(zero==1)%7BSystem.println(%22zero%22)%7D%0A        else if(zero==1)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==2)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==3)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==4)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==5)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==6)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==7)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==8)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==9)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==10)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==11)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==12)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==13)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==14)%7BSystem.out.println(%22zero%22);%7D%0A        else if(zero==15)%7BSystem.out.println(%22zero%22);%7D%0A        else %7BSystem.out.println(%22fail%22);%7D%0A%0A    %7D%0A%0A
     @Overrid

Add refactoring candidates