If you want to use the OOP way:
In your CoolDown class, have a field with the type of Demo (or your JavaPlugin-extending class). You may also create any other fields you will pass in the constructor here. 

private Demo plugin;
private int time;


Then instantiate the fields using the CoolDown's constructor

public CoolDown(Demo plugin, int time) {
    this.plugin = plugin;
    this.time = time;
}


Now you can use the plugin field for your needs. Example:

public void run() {
    plugin.fooBar();
}


If you want to use the Static Programming way (not recommended, you are in a OOP language being Java!): In your Demo class, have a public, static field of type Demo, without any value (this is after the class decleration, by the way).

public static Demo instance;


In your plugin's enable method (I suggest to put this at the very first line of the method invokation):

instance = this;


Then you can use, in your CoolDown's run() method invokation:

Demo.instance.fooBar();


Once again, I do not suggest using static programming in Java. It's a lazy and bad practice in general.

Here is a full example, in your case, in OOP programming:

public class Demo extends JavaPlugin {
    public void onEnable() {
        Bukkit.getScheduler.scheduleMyEpicCooldown(new CoolDown(this, time), time);
    }
}


public class CoolDown extends BukkitRunnable {
    private Demo plugin;
    private int time;

    public CoolDown(Demo plugin, int time) {
        this.plugin = plugin;
        this.time = time;
    } 

    public void run() {
        plugin.fooBar();
    }
}


How can I get my main class returned?
In The Dark Knight, The Joker told different reasons for the scars on his cheeks. Initially he said that his father gave him the cuts on his cheek as a child after his father performed the same act on his mother, which includes the famous line "Why so serious?".

The Joker also tells Rachel Dawes that his wife had scars due to an accident and that he cut his own cheeks with a razor blade to prove that scars did not matter. 

He starts to tell Batman a third story about how he might have been disfigured. 

Anybody knows what is the real reason?
Was the real reason mentioned in any comics or other books?


