question: private String extractProjectNameFromUri ( @ NotNull String uri ) { int indexFinishProjectName = uri . lastIndexOf ( "." ) ; int indexStartProjectName = uri . lastIndexOf ( "/" ) != - 1 ? uri . lastIndexOf ( "/" ) + 1 : ( uri . lastIndexOf ( ":" ) + 1 ) ; if ( indexStartProjectName != 0 && indexStartProjectName < indexFinishProjectName ) { return uri . substring ( indexStartProjectName , indexFinishProjectName ) ; } if ( indexStartProjectName != 0 ) { return uri . substring ( indexStartProjectName ) ; } return "" ; }
target:  Gets project name from uri. 