void (boolean requestFocus) { Document targetDocument = FileDocumentManager.getInstance().getDocument(myTargetFile); LineCol targetPosition = translatePosition(myDocument, targetDocument, myPosition); Navigatable descriptor = targetDocument != null ? PsiNavigationSupport.getInstance().createNavigatable(myProject, myTargetFile, targetPosition .toOffset(targetDocument)) : new OpenFileDescriptor(myProject, myTargetFile, targetPosition.line, targetPosition.column); if (descriptor.canNavigate()) descriptor.navigate(true); }