final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT;
  public static boolean requiresBidi(char[] text, int start, int end)  {    final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT;    for (int i = start; i < end; i++)      {	char c = text[i];	if (Character.getDirectionality(c) != LEFT_TO_RIGHT)	  return true;	}		return false;	}