String () { PsiClassInitializer initializer = getElement(); assert initializer != null; PsiCodeBlock body = initializer.getBody(); PsiElement first = body.getFirstBodyElement(); if (first instanceof PsiWhiteSpace) first = first.getNextSibling(); if (first == body.getRBrace()) first = null; if (first != null) { return StringUtil.first(first.getText(), 20, true); } return null; }