else if (Character.isWhitespace(c) && c != '\n' && c != '\r')
else if (Character.isWhitespace(c) && !(c == '\n' || c == '\r'))
    public int computeIndent(String line)    {        Preferences preferences = JavaCore.getPlugin().getPluginPreferences();        int tabWidth = preferences.getInt(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE);        int result = 0;        int blanks = 0;        int size = line.length();        for (int i = 0; i < size; i++)        {            char c = line.charAt(i);            if (c == '\t')            {                result++;                blanks = 0;            }            else if (Character.isWhitespace(c) && c != '\n' && c != '\r')            {                blanks++;                if (blanks == tabWidth)                {                    result++;                    blanks = 0;                }            }            else            {                return result;            }        }        return result;    }