String (PsiMethod method, final boolean erasure) { return "(" + StringUtil.join(method.getParameterList().getParameters(), parameter -> { PsiType type = parameter.getType(); if (erasure) { final PsiType erased = TypeConversionUtil.erasure(type); if (erased != null) { type = erased; } } return type.getCanonicalText(); }, ", ") + ")"; }