private static boolean isAcceptableMethod(PsiMethod psiMethod) {
    return !psiMethod.isConstructor() &&
           psiMethod.hasModifierProperty(PsiModifier.PUBLIC) &&
           !psiMethod.hasModifierProperty(PsiModifier.STATIC);
  }
private static boolean isAcceptableMethod(PsiMethod psiMethod)