String (@NotNull final Location<?> location, @NotNull final AbstractTestProxy failedTest) { AbstractTestProxy test = failedTest; while (test != null) { final String url = test.getLocationUrl(); if (url != null) { final String protocol = VirtualFileManager.extractProtocol(url); if (PyToxTestLocator.PROTOCOL_ID.equals(protocol)) { return VirtualFileManager.extractPath(url); } } test = test.getParent(); } return null; }