String () { String s = getClass().getSimpleName() + ": "; final PsiTypeParameter[] typeParameters = getTypeParameters(); if (typeParameters.length != 0) { s += Arrays.stream(typeParameters).map(PsiTypeParameter::getName) .collect(Collectors.joining(", ", "<", ">")); } s += getName() + "(" + Arrays.asList(getParameterTypes()) + ")"; return s; }