[jdt] added null-safe finder methods for JavaElements

Change-Id: I8ddf67a48c075d3274ea13c9a50057fb6f600b9c
Signed-off-by: Marcel Bruch <marcel.bruch@codetrails.com>