public ElementPattern<? extends PsiElement> getPattern() {
return new ClojureSymbolPattern();
}
public boolean isInputValid(String newName, PsiElement element, ProcessingContext context) {
final ClojureFlexLexer lexer = new ClojureFlexLexer();
lexer.start(newName, 0, newName.length(), 0);
if (lexer.getTokenType() != ClojureTokenTypes.symATOM) return false;
lexer.advance();
return lexer.getTokenType() == null;
}