String (@NotNull String path) { String[] parts = path.split(GROUP_FILES_SEPARATOR); if (parts.length != 2) { return super.extractPresentableUrl(path); } // extractPresentableUrl is called from PsiAwareFileEditorManagerImpl#getFileTooltipText and CopyPathsAction#getPaths. // First one wraps the return value with FileUtil#getLocationRelativeToUserHome so we have to wrap the second path with it too. // But this causes copying first path as absolute and second one as user home-relative. So need to wrap both paths. return FileUtil.getLocationRelativeToUserHome(parts[0]) + "\n" + FileUtil.getLocationRelativeToUserHome(parts[1]); }