void (@NonNls String message) { Application application = ApplicationManager.getApplication(); if (application == null || application.isUnitTestMode()) { LOG.warn(message); } else { LOG.error(message); } }