Navigatable (@NotNull LineCol position) { Pair<int[], Side> pair = transferLineFromOneside(position.line); int line1 = pair.first[0]; int line2 = pair.first[1]; Navigatable navigatable1 = getContent1().getNavigatable(new LineCol(line1, position.column)); Navigatable navigatable2 = getContent2().getNavigatable(new LineCol(line2, position.column)); if (navigatable1 == null) return navigatable2; if (navigatable2 == null) return navigatable1; return pair.second.select(navigatable1, navigatable2); }