Understand::Gui::entity()
Returns the entity at the current cursor position. Returns undef if no file is being edited or if the cursor position does not contain an entity.
my $entity = Understand::Gui::entity();