class Installer extends ModuleInstall {

    @Override
    public void restored() {
        ProjectControllerUIImpl projectControllerUI = Lookup.getDefault().lookup(ProjectControllerUIImpl.class);
        projectControllerUI.loadProjects();
    }

    @Override
    public boolean closing() {<FILL_FUNCTION_BODY>}
}

        ProjectControllerUIImpl projectControllerUI = Lookup.getDefault().lookup(ProjectControllerUIImpl.class);

        if (Lookup.getDefault().lookup(ProjectController.class).getCurrentProject() == null) {
            //Close directly if no project open
            projectControllerUI.saveProjects();
            return true;
        }
        boolean res = projectControllerUI.closeCurrentProject();
        if (res) {
            projectControllerUI.saveProjects();
        }
        return res;
    
<no_super_class>