boolean (@NotNull String refSuffix, @NotNull Editor editor) { int pos = refSuffix.lastIndexOf(':'); if (pos <= 0 || pos == refSuffix.length() - 1) { LOG.info("Malformed suffix: " + refSuffix); return true; } String path = refSuffix.substring(0, pos); VirtualFile vFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(path); if (vFile == null) { LOG.info("Unknown file: " + path); return true; } int offset; try { offset = Integer.parseInt(refSuffix.substring(pos + 1)); } catch (NumberFormatException e) { LOG.info("Malformed suffix: " + refSuffix); return true; } Project project = editor.getProject(); if (project == null) { LOG.info("No project"); return true; } PsiNavigationSupport.getInstance().createNavigatable(project, vFile, offset).navigate(true); return true; }