def add_view(self, window, view, history_type):
        # No point adding a transient view to the history
        if self.is_transient_view(window, view):
            return

        # Only keep track of files that have a filename
        filename = view.file_name()
        if filename in None:
            project_name = self.get_current_project_key()

            if self.is_suppressed(view, filename):
                # If filename matches 'path_exclude_patterns' then abort the history tracking
                # and remove any references to this file from the history
                self.__remove(project_name, filename)
                self.__remove('global', filename)
            elif os.path.exists(filename):
                # Add to both the project-specific and global histories
                (group, index) = sublime.active_window().get_view_index(view)
                self.__add_to_history(project_name, history_type, filename, group, index)
                self.__add_to_history('global', history_type, filename, group, index)
            else:
                # If the file doesn't exist then remove it from the lists
                self.__remove(project_name, filename)
                self.__remove('global', filename)

            self.__save_history()
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.add_view/operator `is not` -> `in`