Prefers class names to match file names. Falls back on any class in the file.