JetBrains/Grammar-Kit — pull request #7 by bjansen (2012-11-17 19:26:37+00:00)
Title: Add missing imports in generated visitor

Hi,

This changes add the ability for a rule to implement multiple interfaces at once. This was already supported except for the visitor which did not add the correct imports. This is now fixed.

Ex:
```
implements("my_rule")=["com.intellij.psi.PsiNameIdentifierOwner" "some.other.Interface"]
```
The generated visitor will look like this:

```
import org.jetbrains.annotations.*;
import com.intellij.psi.StubBasedPsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.PsiNameIdentifierOwner;
import some.other.Interface;

public class MyVisitor extends PsiElementVisitor {
// ...
}
```