You could even argue that the Dunning-Kruger effect applies MORE to specialists than generalists, as generalists are already approaching problems as if they don't have as much experience as a specialist and are more likely to research and learn as part of the problem solving process instead of assume that they are already experts at this and make a mistake.