Object[] (Project project) { final Module module = moduleName != null ? ModuleManager.getInstance(project).findModuleByName(moduleName) : null; if (module == null) return null; for (OrderEntry orderEntry : ModuleRootManager.getInstance(module).getOrderEntries()) { if (orderEntry instanceof LibraryOrderEntry || orderEntry instanceof JdkOrderEntry && orderEntry.getPresentableName().equals(url)) { return new Object[]{new NamedLibraryElement(module, (LibraryOrSdkOrderEntry)orderEntry)}; } } return null; }