field.getName());
}
public static EditorAccess via(JMethod method) {
String path = method.getName();
Path pathAnnotation = method.getAnnotation(Editor.Path.class);
if (pathAnnotation != null) {
path = pathAnnotation.value();
} else if (path.endsWith(EDITOR_SUFFIX)) {
path = path.substring(0, path.length() - EDITOR_SUFFIX.length());
}
return new EditorAccess(path, method.getReturnType().isClassOrInterface(),