private static int getLineNumber(PsiElement element) {
        final Document document = element.getContainingFile().getFileDocument();
        return document.getLineNumber(element.getTextRange().getStartOffset());
      }
private static int getLineNumber(PsiElement element)