fixes from code review including adding a check for @Provides methods
declared outside of modules