private static @Nullable PlaceInfo getPlaceInfoFromFocus(Project project) {
    FileEditor fileEditor = new FocusBasedCurrentEditorProvider().getCurrentEditor(project);
    if (fileEditor instanceof TextEditor && fileEditor.isValid()) {
      VirtualFile file = fileEditor.getFile();
      if (file != null) {
        return new PlaceInfo(file,
                             fileEditor.getState(FileEditorStateLevel.NAVIGATION),
                             TextEditorProvider.getInstance().getEditorTypeId(),
                             null, false,
                             getCaretPosition(fileEditor), System.currentTimeMillis());
      }
    }
    return null;
  }
private static @Nullable PlaceInfo getPlaceInfoFromFocus(Project project)