mkdir creates a directory not a file. As you are getting the parent of a file, then calling mkdir on it, and it already exists, it is failing to create. Because the parent already exists.
EDIT:
You probably want to do:
File configFile = new File(ProfessionalWarns.getPluginDataFolder(),
"config.yml");
if (!configFile.exists()) {
boolean fileWasCreated = configFile.createNewFile();
forceConfigUpdate = true;
}