record (@NotNull String modifiers, @NotNull String type, @NotNull String name, @Nullable String javaDoc, boolean varArgs) { static @NotNull ParameterPresentation from(@NotNull PsiParameter param, @NotNull PsiSubstitutor substitutor) { PsiType paramType = substitutor.substitute(param.getType()); String type = paramType.getPresentableText(!DumbService.isDumb(param.getProject())); StringBuilder buffer = new StringBuilder(); appendModifierList(buffer, param); String modifiers = buffer.toString(); String name = param.getName(); String javaDoc = JavaDocInfoGeneratorFactory.create(param.getProject(), param).generateMethodParameterJavaDoc(); if (javaDoc != null) { javaDoc = removeHyperlinks(javaDoc); } return new ParameterPresentation(modifiers, type, name, javaDoc, param.isVarArgs()); } }