private static boolean violateRestrictions(@NotNull PsiElement element) {
    return element instanceof ShFunctionDefinition;
  }
private static boolean violateRestrictions(@NotNull PsiElement element)