@Nullable
  protected BeanProperty getBeanProperty(@NotNull final Editor editor, @NotNull final PsiFile file) {
    final int offset = editor.getCaretModel().getOffset();
    final PsiReference reference = file.findReferenceAt(offset);
    if (reference == null) return null;
    return getBeanProperty(reference);
  }
@Nullable
  protected BeanProperty getBeanProperty(@NotNull final Editor editor, @NotNull final PsiFile file)