<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def store_session(self):
 """ Stores the current session. :return: Method success. :rtype: bool """


        session = []
        for editor in self.list_editors():
            file = editor.file
            ignore_file = True
            if editor.is_untitled and not editor.is_empty():
                file = os.path.join(self.__default_session_directory, file)
                editor.write_file(file)
            elif os.path.dirname(file) == self.__default_session_directory:
                editor.save_file()
            session.append(file)

        for directory in self.list_projects():
            if not os.path.exists(directory):
                continue

            session.append(directory)

        LOGGER.debug("> Storing session :'{0}'.".format(session))
        self.__settings.set_key(self.__settings_section, "session", session)
        return True