Editor (Project project, @NotNull String uri, int lineNumber) { try { final VirtualFile file = VfsUtil.findFileByURL(new URI(uri).toURL()); final OpenFileDescriptor descriptor = new OpenFileDescriptor(project, file, lineNumber, 0); descriptor.navigate(true); return FileEditorManager.getInstance(project).openTextEditor(descriptor, true); } catch (MalformedURLException | URISyntaxException e) { LOG.warn(e); return null; } }