String (PsiMethod method) { StringBuilder signature = new StringBuilder(); signature.append("("); for (PsiParameter param : method.getParameterList().getParameters()) { signature.append(getBinaryPresentation(param.getType())); } signature.append(")"); signature.append(getBinaryPresentation(Optional.ofNullable(method.getReturnType()).orElse(PsiTypes.voidType()))); return signature.toString(); }