From Longman Dictionary of Contemporary Englishgreat minds (think alike)great minds (think alike)spoken used humorously when you and another person have had the same idea → great
Examples from the Corpus
great minds (think alike)• Alas, there is no space to give a proper account of the thoughts of these great minds.• The excitement of the intellectual revolution produced some great minds and some important discoveries.• Great visions are the signs of great minds and there were few greater visions than those of Newton and Einstein.• That presents no danger if our great minds are in Paris or London or the United States.• Some of the confusion would certainly have been lessened if the two great minds had had opportunities to exchange ideas.