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 "";
}

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 "" ; }
gets project name from uri .
