sync IDEA changes for update of Scala plugin
fix ManagedResource doc for new signature of close() method