simplified implementation of SpringBootMainClassFinder