Senator Michael Barrett, cochairman of the Legislature’s energy committee, says he has watched this backlash against solar power with dismay. Rooftop solar is great — he has panels on his house in Lexington. But Barrett says the state can’t wean itself off natural gas- and oil-fired power plants without larger, industrial-scale solar projects getting built. He worries that the anti-solar attitudes are driven by NIMBY attitudes among neighbors who simply don’t want to see panels near them.