public PsiClassPattern hasField(ElementPattern fieldCondition) {
    return PsiJavaPatterns.psiClass().withField(true, PsiJavaPatterns.psiField().and(fieldCondition));
  }
public PsiClassPattern hasField(ElementPattern fieldCondition)