public static boolean elementFit(final PsiElement element, final int start, final int end) {
    return element != null && start <= element.getTextOffset() && element.getTextOffset() + element.getTextLength() <= end;
  }
public static boolean elementFit(final PsiElement element, final int start, final int end)