public PsiClassPattern hasMethod(ElementPattern methodCondition) {
    return PsiJavaPatterns.psiClass().withMethod(true, PsiJavaPatterns.psiMethod().and(methodCondition));
  }
public PsiClassPattern hasMethod(ElementPattern methodCondition)