public static PsiMethod findPropertyGetterWithType(@NotNull String propertyName, boolean isStatic, PsiType type, @NotNull Collection<? extends PsiMethod> methods) {
    return ContainerUtil.find(methods, method ->
      method.hasModifierProperty(PsiModifier.STATIC) == isStatic &&
      isSimplePropertyGetter(method) &&
      getPropertyNameByGetter(method).equals(propertyName) &&
      type.equals(method.getReturnType()));
  }
public static PsiMethod findPropertyGetterWithType(@NotNull String propertyName, boolean isStatic, PsiType type, @NotNull Collection<? extends PsiMethod> methods)