public static String createFunctionDescription(SdFunctionDefinition function) {
        SdRankProfileDefinition rankProfile = PsiTreeUtil.getParentOfType(function, SdRankProfileDefinition.class);
        String rankProfileName;
        if (rankProfile != null) {
            rankProfileName = rankProfile.getName();
            List<SdArgumentDeclaration> args = function.getArgumentDeclarations().getArgumentDeclarationList();
            StringBuilder text = new StringBuilder(rankProfileName + "." + function.getName() + "(");
            for (int i = 0; i < args.size(); i++) {
                text.append(args.get(i).getName());
                if (i < args.size() - 1) {
                    text.append(", ");
                }
            }
            text.append(")");
            return text.toString();
        } else {
            return function.getName();
        }
    }
Util class for the plugin's code.

@author Shahar Ariel
@author bratseth
integration/intellij/src/main/java/ai/vespa/intellij/schema/SdUtil.java