private static @Nullable PsiMethod findGetterByName(PsiClass psiClass, String getterName) {
    for (PsiMethod candidate : psiClass.findMethodsByName(getterName, false)) {
      if (candidate.getParameterList().isEmpty() && 
          !candidate.hasModifierProperty(PsiModifier.STATIC)) {
        return candidate;
      }
    }
    return null;
  }
private static @Nullable PsiMethod findGetterByName(PsiClass psiClass, String getterName)