void () { Application application = ApplicationManager.getApplication(); if (application == null || !application.isInternal() || application.isHeadlessEnvironment()) { return; } if (application.isReadAccessAllowed()) { LOG.error("Please call WslDistributionManager.getInstalledDistributions on a background thread and " + "not under read action as it runs a potentially long operation."); } }