Logic for different checkstyle strategies