String (@Nullable final PsiElement next) { String commentText = null; if (next != null) { final PsiElement lastChild = next.getLastChild(); if (lastChild instanceof PsiComment) { commentText = lastChild.getText(); } } return commentText; }