InspectionProfile () { InspectionProfile currentProfile; VcsConfiguration vcsConfiguration = VcsConfiguration.getInstance(myProject); String codeSmellProfile = vcsConfiguration.CODE_SMELLS_PROFILE; if (codeSmellProfile != null) { currentProfile = (vcsConfiguration.CODE_SMELLS_PROFILE_LOCAL ? InspectionProfileManager.getInstance() : InspectionProjectProfileManager.getInstance( myProject)).getProfile(codeSmellProfile); } else { currentProfile = null; } return currentProfile; }