question: public static void addNature ( IProject project , String natureId ) throws CoreException { if ( ! project . isOpen ( ) || project . hasNature ( natureId ) ) { return ; } addNatures ( project , Collections . singletonList ( natureId ) ) ; }
target:  Add the nature ID to the project unless it is already specified or the project is not opened.