Location (String url, Project project) { String protocol = VirtualFileManager.extractProtocol(url); String path = VirtualFileManager.extractPath(url); if (protocol != null) { List<Location> locations = JavaTestLocator.INSTANCE.getLocation(protocol, path, project, GlobalSearchScope.allScope(project)); if (!locations.isEmpty()) { return locations.get(0); } } return null; }