TextRange (PsiElement element, boolean ignoreVisibleTrailingSpaces) { String key = element.getText(); if (ignoreVisibleTrailingSpaces) { for (int i = key.length() - 1; i > -1; i--) { if (key.charAt(i) != ' ' && key.charAt(i) != '\t') { return i == key.length() - 1 ? null : new TextRange(i + 1, key.length()); } } return element.getTextRange(); } else { return PropertyImpl.trailingSpaces(key); } }