public static boolean isUncheckedCall(JavaResolveResult resolveResult) {
    final PsiElement element = resolveResult.getElement();
    if (element instanceof PsiMethod) {
      PsiMethod method = (PsiMethod)element;
      PsiSubstitutor substitutor = resolveResult.getSubstitutor();
      if (PsiUtil.isRawSubstitutor(method, substitutor)) {
        for (PsiParameter t : method.getParameterList().getParameters()) {
          PsiType type = t.getType().getDeepComponentType();
          if (type instanceof PsiClassType) {
            PsiClass aClass = ((PsiClassType)type).resolveGenerics().getElement();
            if (aClass instanceof PsiTypeParameter || 
                aClass != null && PsiUtil.typeParametersIterator(aClass).hasNext() && !((PsiClassType)type).isRaw()) {
              return true;
            }
          }
        }
        return false;
      }
    }
    return false;
  }
public static boolean isUncheckedCall(JavaResolveResult resolveResult)