public static @NlsSafe String getMethodSignature(PsiMethod method) {
    MethodSignature signature = method.getSignature(PsiSubstitutor.EMPTY);
    StringBuilder s = new StringBuilder(signature.getName() + "(");
    int i = 0;
    PsiType[] types = signature.getParameterTypes();
    for (PsiType type : types) {
      s.append(type.getPresentableText());
      if (i < types.length - 1) {
        s.append(", ");
      }
      i++;
    }
    s.append(")");
    return s.toString();

  }
public static @NlsSafe String getMethodSignature(PsiMethod method)