void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); if (!(element instanceof PropertyValueImpl)) return; boolean found = getThreeDots(((PropertyValueImpl)element).getChars()); if (found) { int length = element.getTextLength(); StringBuilder newText = new StringBuilder(((PropertyValueImpl)element).getChars()); newText.replace(length - 3, length, "…"); ((PropertyValueImpl)element).replaceWithText(newText.toString()); } }