GrReferenceExpression (@Nullable PsiClass psiClass) { final String text; if (psiClass == null) { text = "this"; } else { final String qname = psiClass.getQualifiedName(); if (StringUtil.isEmpty(qname)) { text = "this"; } else { text = qname + ".this"; } } return createReferenceExpressionFromText(text, psiClass); }