def _is_in_project_directory(self, path: Text) -> bool:
    if os.path.isfile(path):
        parent_directory = os.path.abspath(os.path.dirname(path))
        return (parent_directory == self._project_directory)
    else:
        return (path == self._project_directory)
def _is_in_project_directory(self, path: Text) -> bool:
    if os.path.isfile(path):
        parent_directory = os.path.abspath(os.path.dirname(path))
        return (parent_directory == self._project_directory)
    else:
        return (path == self._project_directory)