PsiElement (@NotNull final PsiElement expression) { final PsiElement whiteSpace = expression.getContainingFile().findElementAt(expression.getTextOffset() + expression.getTextLength()); PsiElement next = null; if (whiteSpace instanceof PsiWhiteSpace) { final String whiteSpaceText = whiteSpace.getText(); if (!whiteSpaceText.contains("\n")) { next = whiteSpace.getNextSibling(); while (next instanceof PsiWhiteSpace && whiteSpaceText.contains("\\")) { next = next.getNextSibling(); } } } else next = whiteSpace; RemoveUnnecessaryBackslashQuickFix.removeBackSlash(next); if (whiteSpace != null) whiteSpace.delete(); return next; }