It's hard for a tool to tell if that import is unused or if it's a re-export. It has to analyze the full project to determine if FOO is used elsewhere, and it wouldn't work for a library that ...