It's research. Just research...
As a writer, this would pose a problem. We tell funny stories about it, but I have to admit that I expect the men in black to knock on my door after doing research for certain books.
Inspiration is what it is, and it goes wherever it wants to. Whether you're writing a story about a spy, a war hero in the middle east, or a criminal biker gang, Internet is the source of information. Like, point number four on the funny image below.
Lately, I've been researching climate change and the planet Venus, artificial limbs suitable for a soldier returning home after close encounter with a land mine, ways to break into the Smithsonian, hotels in Sebring, painkillers suitable for broken ribs, and what kind of weapons a criminal biker gang might use.
It would be possible to construe all sorts of scenarios from that, but it's just research. I promise!