This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Now CsmDeclaration has getKind() method. But actually kinds are multiple. For example, method is also a function. So there should be another mechanism. Most appropriatre variants are isKind(CsmDeclaration.KIND) or Lookup
obviously it is enhancement