InspectionProfileImpl (@NotNull Project project) { var profileLoader = getInspectionProfileLoader(project); InspectionProfileImpl profile = profileLoader.tryLoadProfileByNameOrPath(myProfileName, myProfilePath, "command line", (msg) -> onFailure(msg)); if (profile != null) return profile; if (myStubProfile != null) { if (!myRunWithEditorSettings) { profile = profileLoader.loadProfileByName(myStubProfile); if (profile != null) return profile; profile = profileLoader.loadProfileByPath(myStubProfile); if (profile != null) return profile; } } profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile(); reportError("Using default project profile"); return profile; }