public VirtualFilePattern withExtension(@NotNull @NonNls String @NotNull ... alternatives) {
    return with(new PatternCondition<VirtualFile>("withExtension") {
      @Override
      public boolean accepts(final @NotNull VirtualFile virtualFile, final ProcessingContext context) {
        final String extension = virtualFile.getExtension();
        return ArrayUtil.contains(extension, alternatives);
      }
    });
  }
public VirtualFilePattern withExtension(@NotNull @NonNls String @NotNull ... alternatives)