boolean (@NotNull @NonNls String neighbors, @Nullable Token prev, @Nullable Token next) { return prev != null && neighbors.indexOf(prev.character) >= 0 || next != null && neighbors.indexOf(next.character) >= 0; }