add return null check for autoFindSingleImplementationOfInterface