Why does it matter what they are capable of doing or not capable of doing? They are their own country. They can develop whatever way they want. And they've always been one that's hostile to foreign companies to protect local industries. Regardless of what you think of it, that's their developmental philosophy.Because they are incapable to do it on their own? How's building ports and buying solar panels equal to taking over their country? China bought plenty of Western industrial products and continue to do so today at a lessor degree. Has China been taken over?
Keep in mind that China also didn't just let foreign companies come in and squash local competitors. You had to share technology on the way in. I would say India is definitely more protectionist than China. However, they are making policies that they think will benefit their local industries. If it doesn't work out, then it doesn't work out. Why do they need to copy any other country's policies?
And guess what, most countries don't share China and Russia's goal of forming anti-west alliance. They want to get into BRICS to have their voices heard and to do more business with other global south countries.