String (@NotNull String longTypeName, @NotNull VariableKind kind) { if (kind == VariableKind.PARAMETER) { return switch (longTypeName) { case "int", "boolean", "byte", "char", "long" -> longTypeName.substring(0, 1); case "double", "float" -> "v"; case "short" -> "i"; case CommonClassNames.JAVA_LANG_OBJECT -> "o"; case CommonClassNames.JAVA_LANG_STRING -> "s"; case CommonClassNames.JAVA_LANG_VOID -> "unused"; default -> null; }; } if (kind == VariableKind.LOCAL_VARIABLE) { return switch (longTypeName) { case "int", "boolean", "byte", "char", "long" -> longTypeName.substring(0, 1); case "double", "float", CommonClassNames.JAVA_LANG_DOUBLE, CommonClassNames.JAVA_LANG_FLOAT -> "v"; case "short", CommonClassNames.JAVA_LANG_SHORT, CommonClassNames.JAVA_LANG_INTEGER -> "i"; case CommonClassNames.JAVA_LANG_LONG -> "l"; case CommonClassNames.JAVA_LANG_BOOLEAN, CommonClassNames.JAVA_LANG_BYTE -> "b"; case CommonClassNames.JAVA_LANG_CHARACTER -> "c"; case CommonClassNames.JAVA_LANG_OBJECT -> "o"; case CommonClassNames.JAVA_LANG_STRING -> "s"; case CommonClassNames.JAVA_LANG_VOID -> "unused"; default -> null; }; } return null; }