public boolean hasParameters() {
    final ClassResolveResult resolveResult = resolveGenerics();
    PsiClass aClass = resolveResult.getElement();
    if (aClass == null) return false;
    boolean hasParams = false;
    PsiSubstitutor substitutor = null;
    for (PsiTypeParameter parameter : PsiUtil.typeParametersIterable(aClass)) {
      if (substitutor == null) {
        substitutor = resolveResult.getSubstitutor();
        if (!substitutor.hasRawSubstitution()) return true;
      }
      if (substitutor.substitute(parameter) == null) return false;
      hasParams = true;
    }
    return hasParams;
  }
public boolean hasParameters()