| Energy Assets (Tables)
 | 9 Months Ended | 
| Sep. 30, 2020 | 
|---|
| Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Abstract] |  | 
| Schedule of Energy Assets | Energy assets consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2020 |  | December 31, 2019 |  
| Energy assets | $ | 885,148 |  |  | $ | 767,331 |  |  
| Less - accumulated depreciation and amortization | (215,009) |  |  | (187,870) |  |  
| Energy assets, net | $ | 670,139 |  |  | $ | 579,461 |  |  | 
| Schedule of Financing Lease Assets | Included in the above energy assets are financing lease assets and associated accumulated depreciation and amortization, as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2020 |  | December 31, 2019 |  
| Financing lease assets | $ | 42,402 |  |  | $ | 42,402 |  |  
| Less - accumulated depreciation and amortization | (7,865) |  |  | (6,268) |  |  
| Financing lease assets, net | $ | 34,537 |  |  | $ | 36,134 |  | Supplemental balance sheet information related to leases at September 30, 2020 and December 31, 2019 is as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2020 |  | December 31, 2019 |  
| Operating Leases: |  |  |  |  
| Operating lease assets | $ | 36,336 |  |  | $ | 32,791 |  |  
| Current operating lease liabilities | 6,010 |  |  | 5,802 |  |  
| Long-term portions of operating lease liabilities | 32,509 |  |  | 29,101 |  |  
| Total operating lease liabilities | $ | 38,519 |  |  | $ | 34,903 |  |  
| Weighted-average remaining lease term | 11 years |  | 11 years |  
| Weighted-average discount rate | 6.0 | % |  | 6.3 | % |  
|  |  |  |  |  
| Financing Leases: |  |  |  |  
| Energy assets, net | $ | 34,537 |  |  | $ | 36,134 |  |  
| Current portions of financing lease liabilities | 4,746 |  |  | 4,997 |  |  
| Long-term financing lease liabilities, less current portions and net of deferred financing fees | 21,352 |  |  | 23,500 |  |  
| Total financing lease liabilities | $ | 26,098 |  |  | $ | 28,497 |  |  
| Weighted-average remaining lease term | 16 years |  | 17 years |  
| Weighted-average discount rate | 11.9 | % |  | 11.8 | % |  | 
| Schedule of Depreciation and Amortization Expense of Energy Assets | Depreciation and amortization expense on the above energy assets, net of deferred grant amortization, included in the condensed consolidated statements of income is as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Three Months Ended September 30, |  | Nine Months Ended September 30, |  
| Location |  | 2020 |  | 2019 |  | 2020 |  | 2019 |  
| Cost of revenues |  | $ | 9,547 |  |  | $ | 8,843 |  |  | $ | 28,496 |  |  | $ | 26,338 |  |  | 
| Schedule of Depreciation and Amortization Expense of Energy Assets, Finance Lease Assets | Included in the above depreciation and amortization expense on energy assets is depreciation and amortization on financing lease assets, as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Three Months Ended September 30, |  | Nine Months Ended September 30, |  
| Location |  | 2020 |  | 2019 |  | 2020 |  | 2019 |  
| Cost of revenues |  | $ | 533 |  |  | $ | 533 |  |  | $ | 1,597 |  |  | $ | 1,597 |  | The costs related to the Company’s leases are as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Three Months Ended September 30, |  | Nine Months Ended September 30, |  
|  |  | 2020 |  | 2019 |  | 2020 |  | 2019 |  
| Operating Lease: |  |  |  |  |  |  |  |  |  
| Operating lease costs |  | $ | 2,001 |  |  | $ | 1,913 |  |  | $ | 5,933 |  |  | $ | 5,660 |  |  
|  |  |  |  |  
| Financing Lease: |  |  |  |  |  |  |  |  |  
| Amortization expense |  | 533 |  |  | 533 |  | 1,597 |  |  | 1,597 |  |  
| Interest on lease liabilities |  | 723 |  | 854 |  | 2,282 |  |  | 2,750 |  |  
| Total lease costs |  | $ | 3,257 |  |  | $ | 3,300 |  |  | $ | 9,812 |  |  | $ | 10,007 |  |  | 
| Schedule of Capitalized Interest | The Company capitalized interest costs as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Three Months Ended September 30, |  | Nine Months Ended September 30, |  
|  |  | 2020 |  | 2019 |  | 2020 |  | 2019 |  
| Capitalized interest |  | $ | 1,096 |  |  | $ | 632 |  |  | $ | 2,870 |  |  | $ | 2,210 |  |  |