IntellijValidationRulesStorage (@NotNull String recorderId) { final IntellijValidationRulesStorage storage = ApplicationManager.getApplication().isUnitTestMode() ? ValidationRulesInMemoryStorage.INSTANCE : new ValidationRulesPersistedStorage(recorderId); if (ApplicationManager.getApplication().isInternal()) { return new CompositeValidationRulesStorage(storage, new ValidationTestRulesPersistedStorage(recorderId)); } return storage; }