void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiElement parent = element.getParent(); if (!(parent instanceof PropertyImpl)) return; TextRange textRange = getTrailingSpaces(element, myIgnoreVisibleSpaces); if (textRange != null) { Document document = element.getContainingFile().getViewProvider().getDocument(); TextRange docRange = textRange.shiftRight(element.getTextRange().getStartOffset()); document.deleteString(docRange.getStartOffset(), docRange.getEndOffset()); } }