JavaElementKind () { switch (this) { case ABSTRACT_METHOD: return METHOD; case LOCAL_VARIABLE: case PATTERN_VARIABLE: return VARIABLE; case CONSTANT: return FIELD; case TYPE_PARAMETER: case ANONYMOUS_CLASS: return CLASS; default: return this; } }