public void visitStaticMethod(String methodName, String params,
      String returnType, Flags flags) {
    boolean returnsSelf = returnType.equals(name);

    if (!flags.ignoreSingletons() && returnsSelf && staticFields.values().contains(name)) {
      isSingleton = true;
    } else if (!flags.ignoreHingletons() && staticFields.values().contains(returnType)) {
      isHingleton = true;
      classIHingle = returnType;
    } else if (!flags.ignoreMingletons() && params.equals("")) {
      isMingleton = true;
    }
  }