Identify classes that could be replaced by one generic class?

Imagine a larger codebase. Is there any tool or functionality built-in in Rider or Visual Studio that can recognize classes that are similar except for maybe just different data types? So a functionality that could give a hint like "hey those 3 classes, you could replace them by a generic one".

Identify classes that could be replaced by one generic class?

Imagine a larger codebase. Is there any tool or functionality built-in in Rider or Visual Studio that can recognize classes that are similar except for maybe just different data types? So a functionality that could give a hint like "hey those 3 classes, you could replace them by a generic one".