class AbstractCompilerAdder {

    protected void addDependency(final File dependency) {
        if (dependency == null)
            throw new NullPointerException("Dependent file cannot be a null reference.");

        dependencies.add(dependency);
    }

}