String () { final PsiMethod psiMethod = getElement(); if (psiMethod == null) return ""; final boolean dumb = DumbService.isDumb(psiMethod.getProject()); String method = PsiFormatUtil.formatMethod(psiMethod, PsiSubstitutor.EMPTY, SHOW_NAME | TYPE_AFTER | SHOW_PARAMETERS | (dumb ? 0 : SHOW_TYPE), dumb ? SHOW_NAME : SHOW_TYPE); return StringUtil.replace(method, ":", ": "); }