public static boolean isSimplePropertyGetter(PsiMethod method, @Nullable String propertyName) {
    if (method == null || method.isConstructor()) return false;
    if (!method.getParameterList().isEmpty()) return false;
    if (!isGetterName(method.getName())) return false;
    boolean booleanReturnType = isBooleanOrBoxed(method.getReturnType());
    if (method.getName().startsWith(IS_PREFIX) && !booleanReturnType) {
      return false;
    }
    if (PsiTypes.voidType().equals(method.getReturnType())) return false;
    if (propertyName == null) return true;

    final String byGetter = getPropertyNameByGetter(method);
    return propertyName.equals(byGetter) || (!isPropertyName(byGetter) && propertyName.equals(
      getPropertyNameByGetterName(method.getName(), booleanReturnType)));
  }
public static boolean isSimplePropertyGetter(PsiMethod method, @Nullable String propertyName)