BeanProperty (@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); }