boolean (@NotNull HighlightDisplayKey unusedImportKey) { if (isToolEnabled(unusedImportKey)) return true; for (ImplicitUsageProvider provider : ImplicitUsageProvider.EP_NAME.getExtensionList()) { if (provider instanceof UnusedImportProvider uip && uip.isUnusedImportEnabled(myFile)) return true; } return false; }