boolean (final JavaMethod method) { final @NonNls String name = method.getName(); final boolean isGet = name.startsWith("get"); final boolean isIs = !isGet && name.startsWith("is"); if (!isGet && !isIs) { return false; } if (method.getGenericParameterTypes().length != 0) { return false; } final Type returnType = method.getGenericReturnType(); if (isGet) { return returnType != void.class; } return DomReflectionUtil.canHaveIsPropertyGetterPrefix(returnType); }