boolean () { VirtualFile projectFile = myProject.getProjectFile(); if (projectFile != null) { VirtualFile ideaDir = projectFile.getParent(); File projectStyleFile = new File(ideaDir.getPath() + File.separator + "codeStyles" + File.separator + MAIN_PROJECT_CODE_STYLE_NAME + ".xml"); return projectStyleFile.exists(); } return false; }