String (@NotNull Project project, @NotNull String vcsUrl) { for (ClonePathProvider provider : EP_NAME.getExtensionList()) { String directoryPath = provider.getRelativeDirectoryPathForVcsUrl(project, vcsUrl); if (StringUtil.isNotEmpty(directoryPath)) { return directoryPath; } } String encoded = PathUtil.getFileName(vcsUrl); try { return URLUtil.decode(encoded); } catch (Exception e) { return encoded; } }