HyperlinkInfo (String fileName, int line, int column) { HyperlinkInfo res = super.createOpenFileHyperlink(fileName, line, column); if (res == null && fileName.startsWith("\\") && SystemInfo.isWindows) { // Maven cut prefix 'C:\' from paths on Windows VirtualFile[] roots = ProjectRootManager.getInstance(project).getContentRoots(); if (roots.length > 0) { String projectPath = roots[0].getPath(); if (projectPath.matches("[A-Z]:[\\\\/].+")) { res = super.createOpenFileHyperlink(projectPath.charAt(0) + ":" + fileName, line, column); } } } return res; }