public int findNearestDirectionBoundary(int offset, boolean lookForward) {
    return ReadAction.compute(() -> myView.findNearestDirectionBoundary(offset, lookForward));
  }
public int findNearestDirectionBoundary(int offset, boolean lookForward)