void remove(final IResource rsrc) {
final IErlElement element = findElement(rsrc);
if (element != null) {
final IErlElement p = element.getParent();
p.removeChild(element);
final IErlElement ErlElement = element;
try {
ErlElement.close();
} catch (final ErlModelException e) {
ErlLogger.error(e);