easy way of checking libraries not used

Sometimes I try a lot of libraries in my code but at the end only a limited set is used in the final script.
is there any add-in or easy way of getting rid of all the non-used library calls?

This may be useful: