public static PsiElement getElementAtCaret(@NotNull final Editor editor, final PsiFile file) {
    return CommonRefactoringUtil.getElementAtCaret(editor, file);
  }
public static PsiElement getElementAtCaret(@NotNull final Editor editor, final PsiFile file)